+(NSString*)dateStrWithFormat:(NSString*)formatStr{
NSDateFormatter * fmt = [NSDateFormatter new];
fmt.dateFormat = formatStr;
[fmt stringFromDate:[NSDate date]];
NSString * timeStr =[fmt stringFromDate:[NSDate date]];
return timeStr;
}
OC中NSDate与格式化输出
最新推荐文章于 2023-05-22 16:22:29 发布