Reputation: 5970
I am using NSDateFormatter
to get a date from an NSString
I am confused as to why the following is not working:
NSDateFormatter *df = [[NSDateFormatter alloc] init];
[df setDateFormat:@"yyyy-MM-dd hh:mm:ss"];
NSDate *myDate = [df dateFromString: timeDateUpdated];
myDate remains nil and yet, as the image shows the timeDateUpdated appears to be of the correct format.
Upvotes: 0
Views: 12