The patterns property (string[]) sets additional date format patterns that are tried when reading the value from the target element.
Declaration
DayPilot.DatePicker.patternsDefault Value
[]Notes
The pattern value is used first. If parsing fails, the values in patterns are tried in the specified order.
Example
const picker = new DayPilot.DatePicker({
target: "start",
patterns: ["M/d/yyyy", "yyyy-MM-dd"],
// ...
});
picker.show();See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot