I am trying to set the date format for something like \"2011-04-21 03:31:37.310396\". I think I\'m not getting the fractional seconds right. I\'m looking at http://unicode.
try
NSDateFormatter* dateFormatter = [[[NSDateFormatter alloc] init] autorelease]; dateFormatter.dateFormat = @"yyyy-MM-dd HH:mm:ss.SSSSSS"; NSDate* serverDate = [dateFormatter dateFromString:@"2011-04-21 03:31:37.310396"]; NSLog(@"%@", serverDate);
I guess you probably forgot the dot