苹果 ios----把NSDate只精确到天

xiaoxiao2021-03-01  3

NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];

[formatter setDateFormat:@"yyyy/MM/dd"];

NSString *dateStr = [formatter stringFromDate:nowDate1];

nowDate1 = [formatter dateFromString: dateStr];

NSLog(@"%@",nowDate1);

相关资源:带音效新年烟花动画特效-HTML-代码
转载请注明原文地址: https://www.6miu.com/read-3850234.html

最新回复(0)