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

Your email address will not be published. Required fields are marked *