When using sqlite, the date/time functions in PMQL should translate to converting to SQLite compatible fields. See: https://www.sqlite.org/lang_datefunc.html