Answers for "php date display formats"

PHP
1

php date format

$originalDate = "2017-03-08";
$newDate = date("d/m/Y", strtotime($originalDate));
Posted by: Guest on May-13-2021
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

Browse Popular Code Answers by Language