Why is lDateFormatted nil on the iPhone 3.1.2 simulator after this piece of code has been executed?
NSString *lDateString = @"Wed, 17 Feb 2010 16:02:01"; NSDateFormatter* dateFormatter = [[[NSDateFormatter alloc] init] autorelease]; [dateFormatter setDateFormat:@"EEE, dd MMM yyyy hh:mm:ss"]; NSDate *lDateFormatted = [dateFormatter dateFromString: lDateString ];
Any ideas, thanks
source share