Hello.
i have date as string "Sat, 29 Nov 2008 00:00:00 -0500"
and i'm trying to create NSDate from it with this code
Date is always nil.
Can someone help me with this?
i have date as string "Sat, 29 Nov 2008 00:00:00 -0500"
and i'm trying to create NSDate from it with this code
Code:
[[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"%a, %d %b %Y %H:%M:%S %Z"];
NSDate *date = [dateFormatter dateFromString:@"Sat, 29 Nov 2008 00:00:00 -0500"];
Date is always nil.
Can someone help me with this?