Skip to first unread message

dayton...@gmail.com

unread,
Jun 11, 2014, 9:03:00 PM6/11/14
to mitappinv...@googlegroups.com
I use 24 hour time on my phone and when I use the TimePicker the display shows 12 hour PM AM times yet the hour that appears in the label I have it set to display is in 24 hour time. Is there a way to make it so the time is a 12 hour time? For example have 4:30 displayed instead of 16:30.

Mario Rossi

unread,
Jun 12, 2014, 3:48:48 AM6/12/14
to mitappinv...@googlegroups.com
would like to know this to

time picker uses 24h clock
but the clock function will use 12h (say if you choose "datetime")

be handy to have them consistent for data

Stephen Zipprich

unread,
Jun 12, 2014, 3:59:44 AM6/12/14
to mitappinv...@googlegroups.com


dayton...@gmail.com

unread,
Jun 12, 2014, 9:25:46 AM6/12/14
to mitappinv...@googlegroups.com
Thanks for the replies.

Stephen,
I tried shortening the code as shown in the attached image and it seems to work. Is your way more thorough and safer from potential errors than a shorter version?

Mario,
I think so too. It would also be nice to get the hour and minutes for example 12:05 all together at the same time instead of joining them together like I am currently doing.

Thanks again for the help. It is much appreciated.
24-hour-to-12-hour-short.PNG

Stephen Zipprich

unread,
Jun 12, 2014, 1:51:08 PM6/12/14
to mitappinv...@googlegroups.com
Yours should work, but it doesn't account for the zero hundred hour, which mine does. Midnight thirty is written as 12:30, rather than 0:30.

dayton...@gmail.com

unread,
Jun 12, 2014, 11:59:21 PM6/12/14
to mitappinv...@googlegroups.com
Thanks for the explanation Stephen. Now it makes sense.
Reply all
Reply to author
Forward
0 new messages