Answers for "how to 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

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 "how to get day name from date in php"

Browse Popular Code Answers by Language