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 <rm...@latencyzero.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to