I'm extracting strings from a text that represent dates. They look like this:
Monday August 16, 2010 05:28 AM EST
I'm trying to parse them with a NSDateFormatter. I've set its format to:
[dateFormatter setDateFormat:@"EEEE MMMM d, YYYY h:mm a z"];
However, this doesn't work. For the example I gave above, if I convert the string to a date and then that date to a string, the date formatter returns this:
Monday December 28, 2009 5:28 AM EST
What am I doing wrong?
EDIT: It seems to work when using the format [dateFormatter setDateFormat:@"EEEE MMMM d, y h:mm a z"];
. Strange...