Answers for "get day name from date in php"

PHP
6

php get day from date

$timestamp = strtotime('2009-10-22');

$day = date('D', $timestamp);
var_dump($day);
Posted by: Guest on June-10-2020
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

Code answers related to "get day name from date in php"

Browse Popular Code Answers by Language