Re: Ensuring UIDatePicker shows 24-hour clock?
Re: Ensuring UIDatePicker shows 24-hour clock?
- Subject: Re: Ensuring UIDatePicker shows 24-hour clock?
- From: Dave DeLong <email@hidden>
- Date: Wed, 22 Aug 2012 20:01:48 -0700
There is, unfortunately, no reliable way to do this. What you could try doing is setting the locale of the UIDatePicker to something like en_GB, where the preferred time format is "HH:mm" and hope that the date picker recognizes this. However, depending on which version of iOS your app is running on, it might not work.
As always, please file an enhancement request. I'd love to see something like this go in. :)
Cheers,
Dave
On Aug 22, 2012, at 7:29 PM, Rick Mann <email@hidden> wrote:
> I'm using the date picker to allow the user to set a time. But in this particular case, I need to ensure the time is always displayed in 24-hour format, rather than AM/PM, even if the user's current locale is set to AM/PM. Is there a way to do that?
>
> Thanks!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden