The date property (DayPilot.Date | string) sets the selected date in the date picker.
Declaration
DayPilot.DatePicker.dateDefault Value
Notes
If you set it to a string, it will be converted to DayPilot.Date automatically. After every user change, this property is updated to the selected date as a DayPilot.Date object.
Example
const picker = new DayPilot.DatePicker({
target: "start",
date: "2026-03-10",
// ...
});
picker.show();See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot