标签:
NSDate *date = [NSDate date];
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
formatter.dateFormat = @"yyyy-MM-dd HH:mm:ss";
NSString *time = [formatter stringFromDate:date];
NSLog(@"%@", time);
标签:
原文地址:http://www.cnblogs.com/lianfu/p/5156347.html