NSDateFormatter* formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@\"dd-MM-YYYY HH:mm\"];
[formatter setTimeZone:[NSTimeZone syst
IF you get the two things in the wrong order, you don't get the expected output.
[formatter setDateFormat:@"MMM"];
[formatter setDateStyle:NSDateFormatterMediumStyle];
does NOT give the same results as:
[formatter setDateStyle:NSDateFormatterMediumStyle];
[formatter setDateFormat:@"MMM"];
(The second of these two snippets is now happily handing out Sep Oct etc in my app)