I have a list of Task entities in my core data DB.
I want to query only the tasks that their dueDate property is Today.
Now, for technical reasons I want to save the query in my CoreData table as well. (in a different entity). Meaning I have to somehow tell sqlite, to return the current date. I tried using an NSPredicate as such to no avail:
dueDuate > date('now','start of day')
I got an exception:
Unable to parse function name 'date' into supported selector (date)
Anyway to achieve what I try to do ?
Aucun commentaire:
Enregistrer un commentaire