<?php $dateStart = new DateTime('now - 1 year'); $dateEnd = new DateTime('now + 2 months'); $months = \Scortes\Calendar\createMonthsInterval($dateStart, $dateEnd);
Year | Month | Days Count | Weeks Count | First Day of Week | First Week Number |
---|---|---|---|---|---|
2015 | 7 | 31 | 5 | 3 | 27 |
2015 | 8 | 31 | 6 | 6 | 31 |
2015 | 9 | 30 | 5 | 2 | 36 |
2015 | 10 | 31 | 5 | 4 | 40 |