I have the following string 2016-10-26T16:01:18.361Z
and works with the folowing code:
formater = [[NSDateFormatter alloc] init];
[formater setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"];
[formater setTimeZone:[NSTimeZone timeZoneWithName:@"GMT"]];
But using the same string
and the same formater
is returning nil when system clock settings is changed to AM/PM
What format should I use?