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

How to customize weekOfMonth to get week starting on Monday #240

Open
ranouf opened this issue Oct 21, 2020 · 0 comments
Open

How to customize weekOfMonth to get week starting on Monday #240

ranouf opened this issue Oct 21, 2020 · 0 comments

Comments

@ranouf
Copy link

ranouf commented Oct 21, 2020

Hi,

In my app, the first day of the week is monday, so when I call:

  var scheduler = later.parse.recur();
  scheduler.on(1).weekOfMonth();
  later.date.localTime();
  var result = later.schedule(scheduler).next(1);

the result is not matching with what I m expecting as later starts the week on sunday.

How could I customize later or weekOfMonth to set Monday as the fist day of the week?

Thanks

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