How to loop through each month of current year and get first and last date of each month : <p>I wanna loop through all the months of a given year or current year and get first and last date of each month.
For example. Current year is 2017 and month October. So i wanna loop from October, 2017 to Decemeber, 2017 and fetch first and last date of each month like october first date is 2017-10-01 and last date will be 2017-10-31.</p>
