converting string to NSDate issue: [__NSDate Length] unrecognized selected
indexNumber.row is a date like 2012-03-09 23:00:00 +0000 . I've tried a handful of different ways to get my date into an NSDate , but I keep getting the title error. NSString *inputString = [self.measurements objectAtIndex:indexNumber.row]; // Convert string to date object NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init]; [dateFormatter setDateFormat:@"yyyy-MM-dd"]; NSDate *date = [dateFormatter dateFromString:inputString ]; NSLog(@"date format is: %@", date); Any ideas why I get the following error: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: