I’ve string @"Sun, 15 Jan 2012 17:09:48 +0000" I want date from it..
What can I do
I tried
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"DDD, DD MMM YYYY HH:MM:SS +HHMM"];
NSDate *date = [dateFormat dateFromString:stringDate];
but date was nslogged with null
Your format is incorrect and here is why
Here is the correct format
"EEE, dd MMM yyyy HH:mm:ss ZZZ"