MySQL date and time constants


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.