Answers for "day format in php"

PHP
0

format date in php

$myDateTime = DateTime::createFromFormat('Y-m-d', $dateString);
$newDateString = $myDateTime->format('d-m-Y');
Posted by: Guest on March-25-2021
-1

date format in php

date('m/d/Y h:i:s a',strtotime($val['EventDateTime']));
Posted by: Guest on July-11-2021

Browse Popular Code Answers by Language