date(h:ia) code example
Example 1: get day from date php
// Prints the day
echo date("l") . "<br>";
Example 2: php date
$dateTime = new \DateTime();
/**
* You can get the string by using format
*/
$dateTime->format('Y-m-d H:i:s');
// Prints the day
echo date("l") . "<br>";
$dateTime = new \DateTime();
/**
* You can get the string by using format
*/
$dateTime->format('Y-m-d H:i:s');