Answers for "convertir string date en string php"

PHP
0

date to string in php

Date to string

$date = "2021/03/13";
$newdate= date('d M, Y', strtotime($date));
echo $newdate;
Posted by: Guest on March-13-2021
1

convertir datetime a string en php

phpCopy$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 April-23-2021

Code answers related to "convertir string date en string php"

Browse Popular Code Answers by Language