i have a question... i have an entity in core data with a date attribute. I want my app to be able to check the data store if there exists a record with today's date so the user can either continue it or overwrite it. the problem is that I'm just fetching the requests using an NSPredicate like this:
self.whereClause = [NSPredicate predicateWithFormat:@"(date = %@)", [NSDate date]];
when i print out the dates to the console they show up
date: 2012-04-26 22:16:45 +0000
and the app is not able to recognize that there is an existing record.... i feel like it might be because of the time/timezone component.....
so how can i compare two NSDate objects retrieved from Core Data without the time components?