I have the following date: month = December, day = 01, year = 2011. The date is given as an NSString with the following format "111201" (YYMMdd). Now I want to parse this string into a NSDate object with a NSDateFormatter:
self.dateFormatter = [[NSDateFormatter alloc] init];
[self.dateFormatter setDateFormat:@"YYMMdd"];
NSDate* date = [self.dateFormatter dateFromString:strDate];
And the output of "111201" is "2011-11-30 23:00:00 +0000". That doesn't make sense to me.
How is this possible? I'd expect "2011-12-01 23:00:00 +0000".