The pattern property (string) sets the date format used when displaying the selected date in the target element.
Declaration
DayPilot.DatePicker.patternDefault Value
datePattern value of the selected locale ("M/d/yyyy").
Notes
See DayPilot.Date.toString() for supported pattern elements.
Example
const picker = new DayPilot.DatePicker({
target: "start",
pattern: "dd.MM.yyyy",
// ...
});
picker.show();See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot