Answers for "get last day of month php"

PHP
3

get last month php

$currentMonth = date('M');// if number, then date('m');
//Last month
$lastMonth = Date("F", strtotime("first day of previous month");
$nextMonth = Date("F", strtotime("first day of next month");
Posted by: Guest on July-30-2020
0

last day of previous month in php

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

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

Code answers related to "get last day of month php"

Browse Popular Code Answers by Language