Return to Snippet

Revision: 11427
at February 4, 2009 18:35 by steve918


Initial Code
//Format Date
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat: @"yyyy-MM-dd HH:mm:ss zzz"]; // 2009-02-01 19:50:41 PST
NSString *dateString = [dateFormat stringFromDate: [scoreData objectForKey: @"date"]];

Initial URL

                                

Initial Description
iPhone uses [LDML standard](http://unicode.org/reports/tr35/tr35-4.html#DateFormatPatterns)
 for date formatting

Initial Title
Date Formatting on iPhone and Cocoa

Initial Tags
iphone

Initial Language
Objective C