我正在尝试从字符串中解析日期并获取 NSDate:
NSArray *expld_date = [day componentsSeparatedByString:@","];
NSString * keyword = [[[expld_date objectAtIndex:1]
stringByAppendingString: @"/"]
stringByAppendingString: [NSString stringWithFormat:@"%d", year] ];
NSDate * date = [_dateFormatter dateFromString: keyword];
NSLog( @"Other Date string %@", keyword );
NSLog( @"Other Date %@", date );
Other Date string 14/07/2013
Other Date 2013-07-13 23:00:00 +0000
这是应该发生的,还是我的模拟器错了?我假设它收到与主机相同的日期时间。