I got a date string in format "Sun, 20 Aug 2010 12:31:09 GMT", I tried to convert it as below, but it is wrong, how can I convert it ?
Code:
NSString *lastModifiedString = [metaData objectForKey:@"Last-Modified"];
NSLog(@"%@", lastModifiedString);
NSDateFormatter *dateFormat = [[[NSDateFormatter alloc] init] autorelease];
[dateFormat setDateFormat:@"%a, %d %m %Y %H %Z"];
NSDate *lastModifiedDate = [dateFormat dateFromString:lastModifiedString];