The getDatePart() method returns the date part of this DayPilot.Date Class instance.
DayPilot.Date.getDatePart()Returns a new DayPilot.Date object that contains the date portion only, with the time part set to midnight.
const dateOnly = new DayPilot.Date("2026-03-07T14:30:00").getDatePart();