moment-recur icon indicating copy to clipboard operation
moment-recur copied to clipboard

A momentjs plugin for matching and generating recurring dates.

Results 26 moment-recur issues
Sort by recently updated
recently updated
newest added

``` const startDate = moment('03/08/2021'); const twoWeeksLater = moment('03/22/2021'); const r1 = startDate.recur().every(2, 'weeks'); const r2 = startDate.recur().every(14, 'days'); // both should be true but prints false; console.log(r1.matches(twoWeeksLater)); // false...

Issue when fetching date for every 2 weeks

In the documentation it says: > With both a start date and an end date set, you can generate all dates within that range that match the pattern (including the...

Hey, is it possible to generate all dates included in a range matching a specific rule. Let's say I have recurrence starting on 08/06/2020 every 2 weeks and I want...

Question: Why is this not working? What am I doing wrong here? ```javascript var startDateMoment = moment("2020-01-01").tz("America/New_York"); var endDateMoment = moment("2020-12-31").tz("America/New_York"); var recurrence = startDateMoment.recur(endDateMoment).every(["Mon", "Tue"]).daysOfWeek().every(2).weeks(); var recurrenceList = recurrence.all();...

In the current scenario: startDate: '2018-12-31' endDate: '2019-12-31' `moment().recur('2018-12-31', '2019-12-31').every(1, 'months').except('2018-12-31').all()` A _monthly_ recurrence for the above should return **12** records, but returns **7** instead. Between those dates (excluding the...

recurrence = moment('2018-01-25').recur('2019-01-01').every(1).week() var allDates = recurrence.all("L"); that returns the blank array. I don't know why its behaving like that.

Added a note to tell users that moment-recur works in UTC mode, or many users who is woking with local mode moment may easily run in to a very confusing...

**TypeError: __WEBPACK_IMPORTED_MODULE_7_moment___default(...)(...).recur is not a function** ``` recurrence = moment().recur({ start: this.broadcastData.fromDate, }).every(this.broadcastData.repeatQuantity).day(); let nextDates = recurrence.next(this.broadcastData.repeatQuantity, 'L'); ``` moment().recur cannot import directly.

This PR allows the testing against the week of the month by day from the end of the month, for example the last Friday of the month. This is achieved...