I have a date in this format 5 Mar 1985 0:00 , stored in the table as VARCHAR .
I want to convert it to Datetime , I use STR_TO_DATE() as follows:
SELECT STR_TO_DATE(birth_date, '%d %m %Y %h:%i') FROM student WHERE pk = 29
But it returns NULL .
source share