views:

27

answers:

1

For example: [dateFormatter setDateFormat:@"yyyy-MM-DD HH:mm:ss"];

I guess there's a list somewhere that shows all those date format specifiers, but can't find any. The NSDateFormatter docs seem to not mention these.

+3  A: 

It uses Unicode Technical Standard #35.

Also note: NSDateFormatter changes a lot with iOS 4, so make sure you read the documentation carefully.

Jason Coco
And that link can be found in the date formatting docs; specifically, [the Date Formatters chapter of the Data Formatting Guide for Cocoa](http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/DataFormatting/Articles/dfDateFormatting10_4.html#//apple_ref/doc/uid/TP40002369-SW5). (At the top of that page, it says “This article describes how you use date formatters using Mac OS X v10.4 and later and iPhone OS.”) That document is, in turn, linked to from the NSDateFormatter class reference.
Peter Hosey
@Peter Hosey: The upcoming NSDateFormatter reference documentation will also include a direct link to the standard as well.
Jason Coco