我的日期字符串是
我尝试了:
它返回
8/5/2011 1:38:13 PM
。请问如何将其转换成NSDate
类型?我尝试了:
[dateFormatter setDateFormat:@"mm/dd/yyyy 'T' hh:mm:ss a"];
NSString *currentDate = [dateFormatter stringFromDate:currentDateString];
它返回
nil
。有什么想法吗?