How can I filter dates?
Posted: 2023-05-15 19:19
Hi All
I have a simple table Reservas, with several fields. One of them is Date, (type date of course)
When I try to run a simple query filter on it
Always return "No matches found!". Doesn't matter if I use quotes or not around the date ('2023-05-12'), or the order DD-MM-YYYY
Howewer, when I run the followin query on MySQL console
SELECT * FROM `reservas` WHERE `Date` = '2023-05-12'
the result is, as expected:
What I'm doing wrong? How can I filter on dates?
Regards!
I have a simple table Reservas, with several fields. One of them is Date, (type date of course)
When I try to run a simple query filter on it
Always return "No matches found!". Doesn't matter if I use quotes or not around the date ('2023-05-12'), or the order DD-MM-YYYY
Howewer, when I run the followin query on MySQL console
SELECT * FROM `reservas` WHERE `Date` = '2023-05-12'
the result is, as expected:
What I'm doing wrong? How can I filter on dates?
Regards!