Date Format problem - convert string to date in MMM d, yyyy format
问题 HI, i have a string 2011-05-13T00:00:00 and i want to convert this string in MMM d, yyyy format. any Help? 回答1: Read this: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/DataFormatting/Articles/dfDateFormatting10_4.html#//apple_ref/doc/uid/TP40002369-SW1 I'm not at my Mac, but this should give you a head-start: NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"yyyy'-'MM'-'dd'T'HH':'mm':'ss'"]; NSDate *originalDate =