How to get last day of each month within a date range in PHP?
Input:
$startdate = '2013-01-15'
$enddate = '2013-03-15'
The output that I want is:
2013-01-31 End date of January
2013-02-28 End date of February
2013-03-15 *End date of March is '2013-03-31' but the end date is '2013-03-15' .
So I want 2013-03-15
.
How can I do that?