The request looks like this:
queryMysql("INSERT INTO tasks (deadline) VALUES(DATE_FORMAT('$deadline', '%d.%m.%Y'));
But for some reason DATE_FORMAT
ignored and DATE_FORMAT
recorded in the database as 2020-05-20, how to fix it?
The request looks like this:
queryMysql("INSERT INTO tasks (deadline) VALUES(DATE_FORMAT('$deadline', '%d.%m.%Y'));
But for some reason DATE_FORMAT
ignored and DATE_FORMAT
recorded in the database as 2020-05-20, how to fix it?
Type date
stores how it [DB] is more convenient.
If you want it to be more convenient for you, then take a string.
Source: https://ru.stackoverflow.com/questions/406614/
All Articles