参看:http://blog.chinaunix.net/u2/66419/showart_2347823.html

NSDateFormatter *dateFormatter = [[NSDateFormatteralloc] init];
[dateFormatter setDateFormat:@"YYYY年MM月dd日"];
NSString *currentDate = [dateFormatter stringFromDate:[NSDatedate]];
NSLog(@"current date = %@",currentDate);

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-25
  • 2021-10-21
  • 2021-10-22
  • 2022-12-23
猜你喜欢
  • 2021-11-28
  • 2022-01-15
  • 2021-10-11
  • 2022-02-10
  • 2022-01-01
  • 2021-12-20
相关资源
相似解决方案