The getDatePart() method returns the date part of this DayPilot.Date Class instance.
Declaration
DayPilot.Date.getDatePart()Return Value
Returns a new DayPilot.Date object that contains the date portion only, with the time part set to midnight.
Example
const dateOnly = new DayPilot.Date("2026-03-07T14:30:00").getDatePart();See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot