Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recur every 2 weeks on Mon and Tues #93

Open
charleskhenry opened this issue May 24, 2020 · 0 comments
Open

Recur every 2 weeks on Mon and Tues #93

charleskhenry opened this issue May 24, 2020 · 0 comments

Comments

@charleskhenry
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant