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

Scheduler endDate property

Asked by Karin
4 years 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]
4 years 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/

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