[ACCEPTED]-How to find the start and end date of a previous month in PHP-php
Accepted answer
I guess this would do
echo date('Y-m-d', strtotime('first day of last month'));
echo "<br/>";
echo date('Y-m-d', strtotime('last day of last month'));
0
echo date('m-01',strtotime('last month')) . '<br/>';
echo date('m-t',strtotime('last month')) . '<br/>';
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.