0

I have a column named Install_date of type char(15) with dates written in this format: "5-Nov-17"

What's the easiest way to convert that column to a date type so that I can sort it please?

Yves
  • 87
  • 6

1 Answers1

0
select STR_TO_DATE("5-Nov-17","%d-%M-%y")

https://dbfiddle.uk/?rdbms=mysql_8.0&fiddle=cabdc038d3653e072fcb37454b769983

Frederic
  • 1,018
  • 6
  • 11