The firstDayOfYear() method returns January 1 of the specified year.
DayPilot.Date.firstDayOfYear()Returns a DayPilot.Date object representing the first day of the year.
const first = new DayPilot.Date("2020-06-15").firstDayOfYear(); // new DayPilot.Date("2020-01-01")