DayPilot.Date.firstDayOfYear

The firstDayOfYear() method returns January 1 of the specified year.

Declaration

DayPilot.Date.firstDayOfYear();

Return Value

DayPilot.Date object representing the first day of year.

Example

var first = new DayPilot.Date("2020-06-15").firstDayOfYear();  // new DayPilot.Date("2020-01-01")