I'm trying to make a fetch for dates later than a specific date. My predicate is as follows:
NSPredicate(format: "date > \(currentDate)")
When I executed the fetch request I caught an exception:
'Unable to parse the format string "date > 2015-07-08 03:00:00 +0000"'
I thought I could make a query like that. What am I doing wrong?
In swift 3 the predicate changed to:
let datePredicate = NSPredicate(format: "date > %@", currentDate as NSDate)