NSDateFormatter *newformat = [NSDateFormatter new];
[newformat setDateFormat:@"yyyy/MM/dd HH:mm:ss"];
NSString *string = [newformat stringFromDate:[NSDate date]];
我正在获取所需格式的字符串,但不是我尝试关注的日期
NSDate *newone = [secondformatter dateFromString:string];