Skip to content

Recur every 2 weeks on Mon and Tues #93

Description

@charleskhenry

Question: Why is this not working? What am I doing wrong here?

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();
console.log(JSON.stringify(recurrenceList));

Thanks for the help in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions