The date you get back from twitter is in this format Fri Aug 07 12:40:04 +0000 2009
. I am able to assign the value to a NSDate without issue. However, when I attempt to use NSDateFormatter, I get a nil returned to me. What am I missing?
NSDate *createdAt = [messageData objectForKey:@"created_at"];
NSDateFormatter *format = [[NSDateFormatter alloc] init];
[format setDateFormat:@"M/d/yy HH:mm"];
NSString *dateString = [format stringFromDate:createdAt];
label.text = dateString;