NSString *stopTimeStr = [NSString stringWithFormat:@"%@",[infoData objectForKey:@"stoptime"]];
NSDateFormatter *formatter=[[NSDateFormatter alloc]init];
[formatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
NSString *dateTime=[formatter stringFromDate:[NSDate date]];
NSDate *date = [formatter dateFromString:dateTime];
NSDate *date2 = [formatter dateFromString:stopTimeStr];
NSComparisonResult result = [date compare:date2];
if (result ==NSOrderedAscending) {
stoptime 大于当前时间
date2 >date
}else if (result ==NSOrderedDescending ){
date2 <date
stoptime 小于当前时间呢
}