Answers for "time from date string function in php"

PHP
2

pasar datetime a string php

$theDate    = new DateTime('2020-03-08');
echo $stringDate = $theDate->format('Y-m-d H:i:s');

//output: 2020-03-08 00:00:00
Posted by: Guest on March-27-2021
0

php date fomat

$date=date_create("2013-03-15");

echo date_format($date,"Y/m/d H:i:s");
Posted by: Guest on April-22-2021

Code answers related to "time from date string function in php"

Browse Popular Code Answers by Language