开发者

Date Formatters in NSDateFormatter

开发者 https://www.devze.com 2022-12-10 19:36 出处:网络
The documentation is not clear about the date formatters NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init开发者_运维技巧] autorelease];

The documentation is not clear about the date formatters

NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init开发者_运维技巧] autorelease]; [dateFormatter setDateFormat:@"EEE, d MMM yyyy HH:MM"];

What are the availabe dateFormats ????

Thanks


Any* Unicode-compliant date string. Specifications can be found here.

http://unicode.org/reports/tr35/tr35-6.html#Date%5FFormat%5FPatterns

*subject to certain locale dependencies. But you're unlikely to run into them for straightforward use cases.

0

精彩评论

暂无评论...
验证码 换一张
取 消