You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Google Calendar, when you start a recurrence with let's say the 5th monday of a month, on the next month if there is only 4 mondays it will match the last one. I would expect this library to do the same.
Here's a test case scenario:
moment({date: 31,month: 2,year: 2014})// 5th monday of march 2014.recur().every(1).daysOfWeek()// monday.every(4)// fifth monday.weeksOfMonthByDay().matches(moment({date: 31,month: 7,year: 2015}))// aug 31st 2015, 5th monday// returns true
moment({date: 31,month: 2,year: 2014})// 5th monday of march 2014.recur().every(1).daysOfWeek()// monday.every(4).weeksOfMonthByDay()// fifth monday.matches(moment({date: 24,month: 10,year: 2014}))// nov 24th 2014, 4th monday// returns false
Thank you
The text was updated successfully, but these errors were encountered:
I created a PR that allows you to match against the last (or second to last, etc) week of the month by day that might help with this use-case. See: /pull/53
In Google Calendar, when you start a recurrence with let's say the 5th monday of a month, on the next month if there is only 4 mondays it will match the last one. I would expect this library to do the same.
Here's a test case scenario:
Thank you
The text was updated successfully, but these errors were encountered: