/ Published in: Objective C

Convert a NSString to NSDate. You can add time.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//The String dateString is : 2012-01-02. You can define time in the dateFormatter [dateFormatter setDateFormat:@"YYYY-MM-DD"]; // or directly //NSDate *dateConvertedFromString = [dateFormatter dateFromString:@"2012-12-21];
Comments
