从数组中提取date时更改
即时将这些代码存储在一个数组中的date
NSDateFormatter *dateformat = [[NSDateFormatter alloc] init]; [dateformat setDateFormat:@"MM/dd/YYYY"]; today = [NSDate date]; [checkinArray addObject:today];
在数组中它存储为checkinArray [0] = 2014-05-22 11:21:09 IST
当我通过这个语句从数组中提取date
NSString *dummystr = [[NSString alloc]initWithFormat:@"%@",[checkinArray lastObject]];
date已经改变到另一个时区
即2014-05-22 05:51:09 +0000
在此先感谢和anyhelp是可观的。