标签:
NSTimeInterval time =(NSTimeInterval )[model.day floatValue];
NSDate *date = [NSDate dateWithTimeIntervalSince1970:time];
//转化为字符串
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
[dateFormatter setDateFormat:@"yyyy/MM/dd hh:mm"];
NSString *dateStr = [dateFormatter stringFromDate:date];
标签:
原文地址:http://www.cnblogs.com/IceBlack-Tea-developer/p/5260030.html