format date to mysql datetime

//formats current date and time to datetime format
//for example: 2004-09-22 21:21:29

$mysqlDatetime = date(“Y-m-d G:i:s”);

Leave a Reply

Be the First to Comment!

avatar
  Subscribe  
Notify of