+ (NSString *)formatterDate:(NSNumber *)desDate
WithDateFormatter:(NSString *)formatter{
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:formatter];
NSDate *date = [NSDate dateWithTimeIntervalSince1970:[desDate doubleValue]];
return [NSString stringWithFormat:@"%@",[dateFormatter stringFromDate:date]];
}
转载于:https://www.cnblogs.com/diweinan/p/6214060.html