NSString *dateString = @"13-8-06 10:53:54 +0300";
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
// this is imporant - we set our input date format to match our input string
// if format doesn't match you'll get nil from your string, so be careful
[dateFormatter setDateFormat:@"yy-MM-dd HH:mm 'ZZ'"];
NSDate *dateFromString = [[NSDate alloc] init];
// voila!
dateFromString = [dateFormatter dateFromString:dateString];
dateFromString 为零。有谁知道我应该给 NSDateFormatter 哪种格式?