I would like to convert 2013-07-10T21:48:09.000Z
to 10.7.2013
using nsdateformatter
.
I've tried going through some tutorial but I can't seem to figure out what to do, How would I correctly do this conversion?
Any help is greatly appreciated.
I tried this but I only get returned a (null)
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:000Z"];
NSDate *theDate = [dateFormatter dateFromString:stringDate];
NSLog(@"%@",[dateFormatter stringFromDate:theDate]);