DayPilot.Date.getHours

The getHours() method returns the hour component of the current value as an integer.

Declaration

DayPilot.Date.getHours()

Parameters

This method has no parameters.

Notes

Use this method to read the hour component of the current DayPilot.Date value.

Example

const date = new DayPilot.Date("2025-03-15T08:30:00");
const hours = date.getHours();

See Also

DayPilot.Date Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript