Answers for "datetime create from format 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

Code answers related to "datetime create from format php"

Browse Popular Code Answers by Language