After googling around, I cannot find a way to create a new table with a DATETIME
column with the default format set to 'DD-MM-YYYY HH:MM:SS
'
I saw a tutorial in which it was done in phpmyadmin
so I suspect that I could use mysql via command line and achieve the same thing when creating my new table with
CREATE TABLE ()
Thank you in advance
No you can't; datetime will be stored in default format only while creating table and then you can change the display format in you
select
query the way you want using the Mysql Date Time Functionsdr is the variable of datareader
try this: