search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Problem with starting on the first day of the week

Asked by Caleb
6 years ago.

There appears to be an issue with the firstDayOfWeek() method.
If I use this line it works:
dp.scrollTo(new DayPilot.Date().firstDayOfMonth());
However, when I change it to this, the scheduler doesnt load at all:
dp.scrollTo(new DayPilot.Date().firstDayOfWeek());

Thanks for any help!

Answer posted by Caleb
6 years ago.

I added the day of the week to the method and it worked:
dp.scrollTo(new DayPilot.Date().firstDayOfWeek(1));

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.