The getTimePart() method returns the number of milliseconds since the beginning of the day.
DayPilot.Date.getTimePart()This method has no parameters.
Use this method to read the time portion of the current DayPilot.Date value as an integer.
const date = new DayPilot.Date("2025-03-15T08:30:45");
const timePart = date.getTimePart();