DayPilot.Duration.totalDays

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.5

See Also

DayPilot.Duration.days()

DayPilot.Duration Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript