我需要解析的输入日期字符串是2013:05:14 13:24:44 我尝试使用此NSDateFormatter代码,但它不起作用... 任何想法?解析EXIF日期字符串到NSDate
_dateFormatter = [NSDateFormatter alloc];
[_dateFormatter setDateFormat:@"yyyy:MM:dd hh:mm:ss"];
NSLocale *usLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"];
[_dateFormatter setLocale:usLocale];
NSTimeZone *timeZone = [NSTimeZone timeZoneWithName:@"UTC"];
http://stackoverflow.com/questions/4999396/how-to-parse-a-date-string-into-an-nsdate-object-in-ios?rq=1 – SAKrisT
显示日期字符串。 – Anupdas
没有日期字符串,没有预期的输出,没有实际的输出,没有意义的“它不工作” - 不是一个真正的问题 – matt