php date to day name code example
Example 1: php full day name
date("l",time())
Example 2: name of today php
$datetime = DateTime::createFromFormat('YmdHi', '201308131830');
echo $datetime->format('D');
$date = new \DateTime();
echo $date->format("D");
Example 3: php date
<?php
date_default_timezone_set('UTC');
echo date("l");
echo date('l jS \of F Y h:i:s A');
echo "July 1, 2000 is on a " . date("l", mktime(0, 0, 0, 7, 1, 2000));
echo date(DATE_RFC2822);
echo date(DATE_ATOM, mktime(0, 0, 0, 7, 1, 2000));
?>