I’m trying to implement the DATETIME in various columns for documenting user action. For example, LastLogin, PasswordChangedAt, UsernameChangedAt.
The DATETIME format appears to b en-US, a default of mysql? 2019.03.22 plus timestamp.
I want to format this as %W, %d. %M %Y
Friday, 22. March 2019
I’ve tried DATE_FORMAT() but it didn’t work for me.
SELECT DATE_FORMAT (column, '%W, %d. %M %Y') column FROM table WHERE ...;
should i try the following command?
SELECT DATE_FORMAT (column, '%W, %d. %M %Y') AS column FROM table WHERE ...;
or this not possible?
is it better for me to use php when adding a datetime instead of the SQL DATE_TIME command?