FraserHamilton / dayjs-recur

Day.js plugin for matching and generating recurring dates.
https://www.npmjs.com/package/dayjs-recur
MIT License
9 stars 2 forks source link

Start date is not included in next() #19

Open kanagavel07 opened 1 year ago

kanagavel07 commented 1 year ago

` let nextDates;

// Create a recurrence const recurrence = dayjs("01/01/2020").recur().every(2).days();

// Generate the next three dates as dayjs instances // Outputs: [dayjs("01/03/2020"), dayjs("01/05/2020"), dayjs("01/07/2020")] nextDates = recurrence.next(3); `

In the above code snippet, the start date 01/01/2020 is not included.