问题
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.
回答1:
It uses Unicode Technical Standard #35.
Also note: NSDateFormatter changes a lot with iOS 4, so make sure you read the documentation carefully.
来源:https://stackoverflow.com/questions/3076370/where-to-look-up-the-date-format-specifiers-used-in-cocoa-cocoa-touch