标签:
- (NSString *)timeStringWithDate:(NSDate *)date { NSDateFormatter *dateForm = [[NSDateFormatter alloc] init]; dateForm.dateFormat = @"yyyy-MM-dd HH:mm:ss"; NSString *timeStr = [dateForm stringFromDate:date]; return timeStr; }
标签:
原文地址:http://www.cnblogs.com/fs-ios/p/4994163.html