NSDate转换为NSString
//获取系统当前时间 NSDate *currentDate = [NSDate date]; //用于格式化NSDate对象 NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; //设置格式:zzz表示时区 [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss zzz"]; //NSDate转NSString NSString *currentDateString = [dateFormatter stringFromDate:currentDate]; //获取系统当前时间 NSDate *currentDate =