In MySQL, DATETIME and DATE must be quoted using single quotes or double quotes. The format must be YYYY-MM-DD and HH:MM:SS. For example, we create a new table t_datetime:
CREATETABLEt_datetime (a DATE);
Insert a date:
INSERT INTO t_datetime (a) VALUES('2022-02-22 22:22:22');