string datetime to mysql dateime format php code example Example: php mysql datetime date("Y-m-d H:i:s")