I am receiving TimeString from server in such format - "2012-04-23T14:00:00.511Z"
and for some reason I get nil
when trying to convert that into NSDate object by doing following
NSDateFormatter *df = [[NSDateFormatter alloc] init];
[df setDateFormat:@"yyyy-MM-dd HH:mm:ss a"];
NSDate *myDate = [df dateFromString: @"2012-04-23T14:00:00.511Z"];
What might be the issue?