0
我使用以下方法基于时区和语言环境创建NSDate对象。使用语言环境的NSDate格式化
descriptionWithCalendarFormat:timeZone:locale:
[[NSDate date] descriptionWithCalendarFormat:@"%Y-%m-%d"
timezone:nil
locale:nil];
但是在文档中没有找到这种方法。 我可以使用的任何替代方法?
感谢
使用一个NSDateFormatter。 – Felixyz 2010-08-03 15:18:11