Take the 2-minute tour ×  I have a core data database that is
filled up with data coming from a json webservice. But I have a
problem with the date. This date is coming back like a string.
So first thing I want to do is to transform this string to a
NSDate. The second thing is to transform this NSDate in the
right format so that I can add a sort descriptor on date.  This
is what I have at the moment for how I store my date in the core
data database.   NSDateFormatter* df = [[NSDateFormatter alloc]
init];     [df setDateFormat:@"MM/dd/yyyy"];     NSDate* d = [df
dateFromString:[genkInfo objectForKey:CALENDAR_DATE]];
kalender.date              = d;  And how I get my data.  -
(void)getKalender // attaches an NSFetchRequest to this
UITableViewController     NSFetchRequest *request =
[NSFetchRequest fetchRequestWithEntityName:@"Kalender"];
request.sortDescriptors = [NSArray
arrayWithObject:[NSSortDescriptor sortDescriptorWithKey:@"date"
ascending:YES]];      self.fetchedResultsController =
[[NSFetchedResu