Answers for "php date name of day"

PHP
0

php check weekday of date

$dayofweek = date('w', strtotime($date));
$result    = date('Y-m-d', strtotime(($day - $dayofweek).' day', strtotime($date)));
Posted by: Guest on April-29-2020
1

php full day name

date("l",time()) // LOWER CASE L
Posted by: Guest on March-30-2020
2

get day from date php

// Prints the day
echo date("l") . "<br>";
Posted by: Guest on July-04-2020
0

name of today php

$datetime = DateTime::createFromFormat('YmdHi', '201308131830');
echo $datetime->format('D');

// or 

$date = new \DateTime();
echo $date->format("D");
Posted by: Guest on September-18-2020

Browse Popular Code Answers by Language