/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Convert string to date object [dateFormat setDateFormat:@"yyyyMMdd"]; // Convert date object to desired output format [dateFormat setDateFormat:@"EEEE MMMM d, YYYY"]; dateStr = [dateFormat stringFromDate:date]; [dateFormat release];
URL: http://stackoverflow.com/questions/2311421/convert-string-to-nsdate