I am trying to make NSPredicate based on a date... I have tried this:
let datePredicate = NSPredicate(format: "due_date < %@", Date())
I am not sure, but iirc, this worked before?
Now I get this error:
Argument type 'Date' does not conform to expected type 'CVarArg'
I tried smth like this
... Date() as NSDate,
but that failed too.
How to solve this?