I need to be able to format an existing NSString into a different date format. NSDateFormatter has dateFromString and stringFromDate methods, but no stringFromString. Is it possible to take a date that I have in the form of an NSString and reformat it using something similar to:
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@'yyyy-MM-dd']; strMyDate = [dateFormatter stringFromString(does not exist):strMyDate];
You need to create a date from the string, then reformat that date into a different string.
Something like: