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

Change the starting hour and ending hour of Scheduler?

Asked by JC
2 months ago.

We have a need to change the starting hour to be 8am and the ending hour 6pm - customer does not want to see the rest of the day (as they don't provide services @ midnight)

Is there a way to configure this? Thanks.

Answer posted by Dan Letecky [DayPilot]
2 months ago.

Yes, this is possible. Please see the documentation for more details:

https://doc.daypilot.org/scheduler/hiding-non-business-hours/

Comment posted by JC
2 months ago.

Thanks - note: I found this did NOT work:

dp.businessBeginsHour = 9;
dp.businessEndsHour = 18

However, THIS works
dp.dayBeginsHour = 9;
dp.dayEndsHour = 18;

This is confirmed by other users of the forum. So, not sure if there is a problem w/ businessBeginsHour or it needs something else to be called to work.

Comment posted by Dan Letecky [DayPilot]
2 months ago.

OK, so you mean the Calendar component.

In the Calendar, there are actually two ways to achieve that - using businessBeginsHour/businessEndsHour + heightSpec and using dayBeginsHour/dayEndsHour:

https://doc.daypilot.org/calendar/business-hours/
https://doc.daypilot.org/calendar/height/
https://doc.daypilot.org/calendar/overnight-scheduling/

New Reply
This reply is
Your name (optional):