I want to use a definition query for a database table (GPKG) on a date field. I got dates from 2019 to - more or less - present day and the definition qeury should result in all data after a certain date.
When I use the "definition query builder",
"Where date is less than 14.06.2023" (german date order) and switch to SQL I can see
main.%inspection.date < JULIANDAY('2023-06-14')
but I get an error message:
"There was an error with the expression."
What's wrong? How do I use a denition query on a date correctly?