MySQL date format DD/MM/YYYY select query?

 

You can use STR_TO_DATE() to convert your strings to MySQL date values and ORDER BY the result:

ORDER BY STR_TO_DATE(datestring, '%d/%m/%Y')

However, you would be wise to convert the column to the DATE data type instead of using strings.

Comments

Popular posts from this blog

Target class controller does not exist - Laravel 8