I have a string with this value:
2010-05-13 23:17:29
I'd like to format it and am using the following code:
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
formatter.dateStyle = NSDateFormatterMediumStyle;
NSDate *formattedDate = [formatter dateFromString:dateString];
[formatter release];
When the debugger reaches the release line, formattedDate shows "invalid CFStringRef" and
Cannot access memory at address 0x0
Any ideas what I'm doing wrong?