I’m trying to cast a NString into NSData but I don’t get it…what’s wrong?
NSString* createAt = @"Wed May 16 06:42:05 +0000 2012";
NSDateFormatter *df = [[NSDateFormatter alloc] init];
[df setDateFormat:@"eee, dd MMM yyyy HH:mm:ss ZZZZ yyyy"];
NSDate *currentDate = [df dateFromString:createAt]; //returns nil
Your date format string is wrong. It should be: