Answers for "php last day of month"

PHP
0

last day of previous month in php

$lastDay = date('t',strtotime('last month'));

print_r($lastDay);
Posted by: Guest on November-28-2020
0

getting last day of next month in php

$lastDateOfNextMonth =strtotime('last day of next month') ;

$lastDay = date('d/m/Y', $lastDateOfNextMonth);

 

print_r($lastDay);
Posted by: Guest on November-28-2020
1

php last day of month

$a_date = "2009-11-23";
echo date("Y-m-t", strtotime($a_date));
Posted by: Guest on July-28-2020
0

get last month using php

//Last month
$lastMonth = Date("F", strtotime("first day of previous month");
$nextMonth = Date("F", strtotime("first day of next month");
Posted by: Guest on November-28-2020
-1

check if is the last day of the month php

if(gmdate('t') == gmdate('d')){
    echo 'Last day of the month.';
}
Posted by: Guest on December-10-2020

Code answers related to "php last day of month"

Browse Popular Code Answers by Language