The fromYearMonthDay() method returns a DayPilot.Date instance representing the specified day.
DayPilot.Date.fromYearMonthDay(year[, month, [day]])year (number) - year
month (number) - month; optional, defaults to 1 if not specified
day (number) - day of the month; optional, defaults to 1 if not specified
Returns a DayPilot.Date instance representing the specified day.
This is a static method.
const day1 = DayPilot.Date.fromYearMonthDay(2016); // 2016-01-01
const day2 = DayPilot.Date.fromYearMonthDay(2016, 2); // 2016-02-01
const day3 = DayPilot.Date.fromYearMonthDay(2016, 2, 29); // 2016-02-29