DayPilot.DatePicker.select

The select() method selects the specified date in the date picker.

Available since 2025.1.6333.

Declaration

DayPilot.DatePicker.select(date)

Parameters

Notes

This method fires onTimeRangeSelect and onTimeRangeSelected.

Example

const picker = new DayPilot.DatePicker("dp", {
  // ...
});
picker.init();

picker.select(DayPilot.Date.today());

See Also

DayPilot.DatePicker Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript