how to select secon part of date in mysql format dd-mm-yyy code example Example: select STR_TO_DATE(date_seance1,'DD-MM-YYYY') ORDER BY STR_TO_DATE(datestring, '%d/%m/%Y')