What is the predicate equivalent of SQL query
DATETIME('now','+0 seconds’) > DATETIME(ZDATE,TIME(ZEND_TIME))
where
ZDATE is date in format YYYY-MM-DD HH:mm:ss
ZEND_TIME is date in format YYYY-MM-DD HH:mm:ss
I am getting the following error when I am directly using it in NSPredicate
Unable to parse function name 'DATETIME' into supported selector (DATETIME)
Aucun commentaire:
Enregistrer un commentaire