0
How do I order decreasingly (select * from tabela order by date desc)
a date field inserted by the datepicker script in the format dd-mm-yyyy in Mysql?
Note: The dates are being ordered only by day, ignoring the month and the next year. And the date field is varchar (10).
Ex: 02-05-2018 (dd-mm-yyyy)
What’s wrong with the
select * from tabela order by date desc
?– Barbetta
the dates are ordered only by the day, ignoring the month and next year. I forgot to mention that the date field is varchar type (10).
– Ramiro
02-05-2018 (in this format)
– Ramiro
I understand. It would be ideal to add this information to the question, so just click the [Dit]
– Barbetta
corrected, grateful.
– Ramiro