Mysql
 SQL >> Base de données >  >> RDS >> Mysql

Format DATETIME correct pour MySQL

Le format standard est 'YYYY-MM-DD HH:MI:SS', avec une horloge 24 h. Vous pouvez aussi utiliser STR_TO_DATE().

STR_TO_DATE('12/21/2012 1:13:58 PM','%m/%d/%Y %h:%i:%s %p')