Posted By

elvman on 08/17/11


Tagged


Versions (?)

MySQL date and time constants


 / Published in: PHP
 

  1. define('MYSQL_DATE_FORMAT', 'Y-m-d');
  2. define('MYSQL_TIME_FORMAT', 'H:i:s');
  3. define('MYSQL_DATETIME_FORMAT', 'Y-m-d H:i:s');

Report this snippet  

You need to login to post a comment.