The select() method selects the specified date in the date picker.
Available since 2025.1.6333.
Declaration
DayPilot.DatePicker.select(date)Parameters
date(DayPilot.Date | string) - the date to be selected
Notes
This method fires onTimeRangeSelect and onTimeRangeSelected.
Example
const picker = new DayPilot.DatePicker("dp", {
// ...
});
picker.init();
picker.select(DayPilot.Date.today());See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot