The getDay() method returns the day of the month as an integer from 1 to 31.
Declaration
DayPilot.Date.getDay()Parameters
This method has no parameters.
Notes
Use this method to read the day-of-month component of the current DayPilot.Date value.
Example
const date = new DayPilot.Date("2025-03-15T00:00:00");
const day = date.getDay();See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot