1<?php
2 // First day of this month
3 $d = new DateTime('first day of this month');
4 echo $d->format('jS, F Y');
5?>
1$lastDateOfNextMonth =strtotime('last day of next month') ;
2
3$lastDay = date('d/m/Y', $lastDateOfNextMonth);
4
5
6
7print_r($lastDay);
1$config_month = 1;
2$config_day = 1;
3
4$new_expiry_date = date('Y-m-d', mktime(0, 0, 0, date('m') + $config_month, 1 + $config_day, date('Y')));
5