DayPilot.Date.firstDayOfMonth

The firstDayOfMonth() method returns a DayPilot.Date instance representing the first day of the specified month.

Declaration

DayPilot.Date.firstDayOfMonth()

Return Value

Returns a DayPilot.Date instance representing the first day of the month.

Example

const first = new DayPilot.Date("2020-02-15").firstDayOfMonth();  // new DayPilot.Date("2020-02-01T00:00:00")

See Also

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript