The init() method initializes the date picker using the specified properties.
Declaration
DayPilot.DatePicker.init()Parameters
This method has no parameters.
Notes
When DayPilot.DatePicker.resetTarget is true, init() writes the current DayPilot.DatePicker.date value to the linked DayPilot.DatePicker.target element.
Example
const picker = new DayPilot.DatePicker({
target: "start",
date: "2026-03-10",
// ...
});
picker.init();See Also
DayPilot.DatePicker.resetTarget
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot