I have the following date as NSString:
Thu May 29 14:22:40 UTC 2014
I've tried to convert it to NSDate with the following code:
NSDateFormatter *fmt = [[NSDateFormatter alloc] init];
fmt.dateFormat = @"EEE MMM d HH:mm:ss zzz yyyy";
NSDate *utc = [fmt dateFromString:@"Thu May 29 14:22:40 UTC 2014"];
NSLog(@"UTC Date:%@:", utc);
The result is nil I've tried several dateFormat regex expressions but with no luck.
What am I missing here?