0

i need UIdatePIcker to choose month/hour/minute and don't want AM or PM. We don't use this in my region. Really i can't find simple solution for this. Just to create my own UIdatePicker.

Maybe someone had done this and could share how to remove Am/PM ?

Thanks

Streetboy
  • 4,351
  • 12
  • 56
  • 101

1 Answers1

0

The date picker will display time based on current locale, so for US you get am/pm, for Ukraine I would get 24 hour selector. Apple recommends that you stick with users locale, but you can override it using locale property. See this question for more discussion.

Community
  • 1
  • 1
Dmitry Shevchenko
  • 31,814
  • 10
  • 56
  • 62
  • I just tried to change in xib local to Ukraine but it don't override AM/PM they still appears. I found many posts that this isn't really easy to do – Streetboy Oct 31 '12 at 07:28
  • The date/time format in date pickers etc. depends on your "region format" settings, not the language, those are separate settings. – omz Oct 31 '12 at 07:33
  • How i could change region format ? and find all supported region list – Streetboy Oct 31 '12 at 08:16