Answers for "datetime create from format"

PHP
3

php datetime create

$date = DateTime::createFromFormat('d-m-Y', '15-12-2020');
Posted by: Guest on February-17-2020
0

php create from format

<?php
$date = DateTime::createFromFormat('j-M-Y', '15-Feb-2009');
echo $date->format('Y-m-d');
?>
Posted by: Guest on July-08-2020

Code answers related to "datetime create from format"

Browse Popular Code Answers by Language