Answers for "php format date time of sql server"

PHP
0

php mysql datetime format string

$phpdate = strtotime( $mysqldate );
$mysqldate = date( 'Y-m-d H:i:s', $phpdate );
Posted by: Guest on January-13-2021
3

php format datetime

//Solution 1
$from = date('Y-m-d H:i a', strtotime($date_time));
echo $from;
//Solution 2
$date=date_create($date_time);
echo date_format($date,"Y/m/d H:i:s");
Posted by: Guest on January-31-2022

Browse Popular Code Answers by Language