Answers for "sql set time format function mysql"

SQL
1

MySQL datetime format

use Datetime;

$now = new DateTime();
echo $now->format('Y-m-d H:i:s');    // MySQL datetime format
echo $now->getTimestamp();           // Unix Timestamp -- Since PHP 5.3
Posted by: Guest on April-20-2021
0

time data format for mysql

hh:ii:ss
Posted by: Guest on December-03-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language