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

Scheduler endDate property

Asked by Karin
13 days ago.

Hi, in scheduler only have startDate and Days this 2 property.
https://api.daypilot.org/daypilot-scheduler-startdate/

But I only have starting Date and ending Date, is that any endDate property can use or have any build in function can calculated the different days?

Thanks!

Answer posted by Dan Letecky [DayPilot]
13 days ago.

You can calculate the number of days between two days like this:

var days = new DayPilot.Duration("2020-01-01", "2020-01-05").days();

See also:
https://api.daypilot.org/daypilot-duration-days/
https://api.daypilot.org/daypilot-duration-totaldays/

New Reply
This reply is
Your name (optional):