MySQL datetime format to dd/mm/yy 00:00:00
问题 How can I alter a Mysql table time stamp to such as the following: dd/mm/yy 00:00:00 I tried: ALTER TABLE TbMessage MODIFY startdate TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL; But is not the formate as i thought: 0000-00-00 00:00:00 can some one help me? Because the date which i am receiving for the table is in the format DD/MM/YYYY from a SQL Database. I cant chnage the formate in the database of SQL. 回答1: A timestamp / datetime is always stored the same way in the database. It is the