The firstDayOfYear() method returns January 1 of the specified year.
Declaration
DayPilot.Date.firstDayOfYear()Return Value
Returns a DayPilot.Date object representing the first day of the year.
Example
const first = new DayPilot.Date("2020-06-15").firstDayOfYear(); // new DayPilot.Date("2020-01-01")See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot