Answers for "how to get first dat and last day of a month in php and loop it"

PHP
1

first day of month php

$first_day = date('Y-m-01');   $last_day = date('Y-m-t');
Posted by: Guest on August-29-2021
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

Code answers related to "how to get first dat and last day of a month in php and loop it"

Browse Popular Code Answers by Language