the date format in mySQL have type (yyyy-mm-dd), now I try to reverse it (dd-mm-yyyy). I got table user
CREATE TABLE USER ( USER_ID INTEGER AUTO_INCREMENT NOT NULL PRIMARY KEY, DOB DATE, ); so when i insert value into that:
INSERT INTO USER(DOB) VALUES(DATE_FORMAT('13-07-1990','%d,%m,%Y)); however, it does not work. It notice that I should use 1990-07-13 instead of '13-07-1990'. please help me to do that. Thanks.
yyyy-mm-dd-hh-ii-ss. As you can see starts with years-months-days-hours-minutes-seconds, which is really easy to remember.