I should have mentioned that it is a dataview query…
Sorry about that. Unforunately I don’t know how to change the name of the topic or add the dataview tag.
You need to ensure both formats are consistently interpreted and processed. Use the date() function to handle both formats by explicitly converting created into a date object first and then applying your logic.
TABLE file.etags as "Tags"
WHERE dateformat(date(created), "yyyy-MM-dd") = "2024-05-23"
OR contains(created, "2024-05-23")
If it doesn’t work, you can try this, but … yeah, it’s not a solution that you want to have
TABLE file.etags as "Tags"
WHERE date(created).year = 2024
AND date(created).month = 5
AND date(created).day = 23