Tag Archives: NSDateFormatter

Date Formatting in Objective-C (Cocoa Framework)

Date Formatting in Objective-C //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"]]; http://codesnippets.joyent.com/posts/show/12740

Posted in Objective-C | Also tagged , , , , , , , , , , | Leave a comment