NSDateFormatter dateFromString and iPhone in 24 Hour Format Confusion

Not sure if you still need it, but I’ve had a similar problem which got solved by setting the locale for the date formatter. That is, if you want to force it to 12-hour mode, regardless of the user’s 24/12 hour mode setting, you should set the locale to en_US_POSIX.

Leave a Comment