1
我想要一个日期转换格式为“2013-02-21T01:25:00.000Z”喜欢的东西上午01点25故障转换的NSDate与NSDateFormatter
NSDate *DepartTimeString = [DepartATime valueForKey:@"dateLocal"];
的NSDate的是从解析JSON和显示为一个标签罚款的字符串,但它不会使用转换为更小格式:
NSDateFormatter *timeFormatter = [[NSDateFormatter alloc] init];
[timeFormatter setTimeStyle:NSDateFormatterLongStyle];
NSString *timeString = [timeFormatter stringFromDate:DepartTimeString];
NSLog(timeString);
的的NSLog显示什么...
的思考?