NSDateFormatter
*formatter = [[NSDateFormatter alloc]
init];
//格式Thu May 05 10:04:37 +0800 2016
[formatter setDateFormat:@"EEE
MMM dd HH:mm:ss zzz yyyy"];
formatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"];
NSDate
*createDate = [formatter dateFromString:@"Thu
May 05 10:04:37 +0800 2016"];
|