我需要解析的輸入日期字符串是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