// 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.
` 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.