Answers for "how to create a date in php"

PHP
3

php datetime create

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

date in php

<?php

// Prints the day, date, month, year, time, AM or PM
$dollar = date("l jS \of F Y") . "<br>";

echo $dollar;

// Result Example :- Wednesday 18th of August 2021

?>
Posted by: Guest on August-18-2021

Code answers related to "how to create a date in php"

Browse Popular Code Answers by Language