extract unique months from date range
I have a date range, (@calendar_start..@calendar_end).
start will always be the first of the month and end will always be the last of the month. They won't always share the same month.
When looping over this range, I would like to stop at the end of the month, fill in the remaining filler dates (end of the week) and start a new list of the next month (I'm building a calendar as a unordered list).
What is the best method to exit, complete month view and continue on with the loop for the remaining time?
Hope I'm somewhat clear enough…*it's a little late.