The totalDays() method returns the duration converted to days.
Declaration
DayPilot.Duration.totalDays()Return Value
Returns the duration converted to days. If the duration includes hours, minutes, seconds, or milliseconds, the result is a fractional number.
Example
const days = new DayPilot.Duration("2020-01-01T00:00:00", "2020-01-05T12:00:00").totalDays(); // 4.5See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot