NSString to NSDate

You can’t invent format string syntax and expect it to work; you need to actually use a documented format. (Seriously, “MM” meaning “month”, “minute” and “GMT offset minutes” all at the same time?)

As the documentation points out, the 10.4 formatters use Unicode format strings.

Try “yyyy-MM-dd HH:mm:ss ZZZ” instead.

Also, Objective-C source is ASCII. Don’t put characters like ± in there and expect it to work in any context; instead, use strings files.

Leave a Comment