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

DayPilot.Date representing the first day of month.

Example

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