As MySQL accepts the date in the y-m-d format in date type column, you need to STR_TO_DATE function to convert the date into yyyy-mm-dd format for insertion in the following way:
INSERT INTO table_name(today)
VALUES(STR_TO_DATE('07-25-2012','%m-%d-%y'));
Similarly, if you want to select the date in a different format other than MySQL format, you should try DATE_FORMAT function
SELECT DATE_FORMAT(today, '%m-%d-%y') from table_name;
Want to be a SQL expert? Intellipaat's SQL Certification will be your best choice. Go ahead with the training!