The getTimePart() method returns the number of milliseconds since the beginning of the day.
Declaration
DayPilot.Date.getTimePart()Parameters
This method has no parameters.
Notes
Use this method to read the time portion of the current DayPilot.Date value as an integer.
Example
const date = new DayPilot.Date("2025-03-15T08:30:45");
const timePart = date.getTimePart();See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot