Answers for "php get date month name"

PHP
1

php grab month from date

$month = date("m",strtotime($mydate));
Posted by: Guest on June-11-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

get month from database php

echo 'Day' . date('d', strtotime($row['Date']));
echo 'Month' . date('m', strtotime($row['Date']));
echo 'Year' . date('Y', strtotime($row['Date']));
Posted by: Guest on May-12-2020
0

long day in php

$mydate = '2016-01-01';
echo date('l, F jS, Y', strtotime($mydate));
# Friday, January 1st, 2016
Posted by: Guest on November-16-2020

Browse Popular Code Answers by Language