I really get a lowercase date in the format "Sun, 08 Jan 2012 13:57:38 +0000" For this I use dateFormat "EEE, dd MMM yyyy HH: mm: ss ZZZ" But this does not work ...
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"EEE, dd MMM yyyy HH:mm:ss ZZZ"]; NSLog(@"%@",[dict objectForKey:@"created_at"]); NSDate *dateFromString = [dateFormatter dateFromString:[dict objectForKey:@"created_at"]]; NSLog(@"%@",dateFromString);
For the first NSLog it displays me "Sun, 08 Jan 2012 13:57:38 +0000" But the second - (null)
I do not understand where I am mistaken. Please tell me if you see something wrong.
thanks
source share