I have table column with datatype as VARCHAR(255) and value in it as "Dec 31 1969 18:00:00". I need to convert this value in date format like Y-m-d H:i:s i.e. 1969-12-31 18:00:00 Tried with the solution using STR_TO_DATE, but is not working anymore. I tried like -
SELECT STR_TO_DATE('Dec 31 1969 18:00:00','%M %d,%Y %h:%i:%s')
BUt, this returns NULL.
Any help is appreciated. Thank you.