Iterating months is broken
icambron opened this issue · 2 comments
icambron commented
startDate = moment("2014-10-01")
endDate = moment("2014-12-01")
dateRange = moment.twix(startDate, endDate, true)
dateRange.count("months") //=> 3
it = dateRange.iterate("months")
it.next() //=> moment for 2014-10-01
it.next() //=> moment for 2014-11-01
it.next() //=> null
Should give us 12/1
DouweM commented
Awesome!