IOS 6 NSDateFormatter
问题 Please help me with the dateformatter on IOS6, please see the code below NSString stringDate = @"12/31/9999"; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init]; [dateFormatter setDateFormat:@"MM/dd/yyyy"]; NSDate *dateCheck = [dateFormatter dateFromString:stringDate]; NSLog(@"Date = %@", dateCheck); Output is Date = 1999-12-31 08:00:00 +0000 This was the output when converting the string date to date 12/31/9999. From the previous version of IOS6 the output is Date = 9999-12-31 08