Question: wrong year
I m using the following code:
NSDateFormatter *df = [[NSDateFormatter alloc] init]; [df setDateFormat:@"yyyy"]; NSDate *date = [NSDate date]; NSLog(@"%@", [df stringFromDate:date]); return;
Its giving me wrong year..
I think u are using other calendar
Check Settings/General/International/Calendar. Set it back to Gregorian.
check it out !!!