The DayPilot.Date.fromYearMonthDay() method returns a DayPilot.Date instance representing the specified day.
Note that this is a "static" method.
DayPilot.Date.fromYearMonthDay(year[, month, [day]]);
var day1 = DayPilot.Date.fromYearMonthDay(2016); // 2016-01-01 var day2 = DayPilot.Date.fromYearMonthDay(2016, 2); // 2016-02-01 var day3 = DayPilot.Date.fromYearMonthDay(2016, 2, 29); // 2016-02-29