I am trying to convert my column into a DATE format. It is currently in varchar and displays as: 12/06/2013
I run the following query;
UPDATE dispatch
SET dispatchdate = DATE_FORMAT(STR_TO_DATE(dispatchdate, '%d/%m/%Y'), '%d-%m-%Y');
ALTER TABLE dispatch
CHANGE dispatchdate dispatchdate date;
However after running this query, it displays my data as: 0000-00-00
I am trying to change it so that it will display as DD-MM-YYYY not YYYY-MM-DD