last day of previous month in php
$lastDay = date('t',strtotime('last month'));
print_r($lastDay);
last day of previous month in php
$lastDay = date('t',strtotime('last month'));
print_r($lastDay);
getting last day of next month in php
$lastDateOfNextMonth =strtotime('last day of next month') ;
$lastDay = date('d/m/Y', $lastDateOfNextMonth);
print_r($lastDay);
php last day of month
$a_date = "2009-11-23";
echo date("Y-m-t", strtotime($a_date));
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");
check if is the last day of the month php
if(gmdate('t') == gmdate('d')){
echo 'Last day of the month.';
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us