$first_day = date('Y-m-01'); $last_day = date('Y-m-t');
date('Y-m-01', strtotime('last month'));
date('Y-m-t', strtotime('last month'));
$lastDateOfNextMonth =strtotime('last day of next month') ;
$lastDay = date('d/m/Y', $lastDateOfNextMonth);
print_r($lastDay);
<?php
// First day of this month
$d = new DateTime('first day of this month');
echo $d->format('jS, F Y');
?>
$first = date('Y-m-01', strtotime('last month'));
$last = date('Y-m-t', strtotime('last month'));
$config_month = 1;
$config_day = 1;
$new_expiry_date = date('Y-m-d', mktime(0, 0, 0, date('m') + $config_month, 1 + $config_day, date('Y')));
$firstOfMonth = date('Y-m-01');
Code Example |
---|
Php :: php secure password hash |
Php :: laravel enum validation |
Php :: php check if text is blank |
Php :: laravel is route name |
Php :: php trim quotes |
Php :: or where in codeigniter |
Php :: php extend parent constructor |
Php :: laravel add user |
Php :: Redirect to external domain in Laravel |
Php :: http_response_code |
Php :: limiting requests to controllers in laravel |
Php :: base url dinamis codeigniter |
Php :: laravel eloquent many to many query using whereHas |
Php :: PHP min() and max() |
Php :: php unserialize array |
Php :: brew reinstall php 7.4 |
Php :: transient wordpress |
Php :: read line by line php |
Php :: img src php wordpress theme child |
Php :: foreach ph |
Php :: concat in php |
Php :: array intersect |
Php :: login with email and phone laravel |
Php :: laravel blade routeIs |
Php :: php connect strings |
Php :: laravel model fillable vs guarded |
Php :: carbon greater than |
Php :: declare empty array in php |
Php :: ini_set php |
Php :: remove special characters in php |