/ Published in: Objective C
Convert a NSString to NSDate. You can add time.
Expand |
Embed | Plain Text
//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];
You need to login to post a comment.
