NSDateFormatter *currentFormatter = [[NSDateFormatter alloc] init];
[currentFormatter setDateFormat:@"YYYY-MM-dd HH:mm:ss"];
NSString *str = [currentFormatter stringFromDate:[NSDate date]];
NSDateFormatter *currentFormatter = [[NSDateFormatter alloc] init];
[currentFormatter setDateFormat:@"YYYY-MM-dd HH:mm:ss"];
NSString *str = [currentFormatter stringFromDate:[NSDate date]];
本文标题:NSDateFormatter
本文链接:https://www.haomeiwen.com/subject/zdsfrctx.html
网友评论