Skip to content
DayPilot

Problem with starting on the first day of the week

Asked by Caleb
12 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
12 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 1 month old and has been closed. Please create a new question if you have anything to add.