Answers for "get the first day of the next month in php"

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 "get the first day of the next month in php"

Browse Popular Code Answers by Language