DayPilot.DatePicker.pattern

The pattern property (string) sets the date format used when displaying the selected date in the target element.

Declaration

DayPilot.DatePicker.pattern

Default 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

DayPilot.DatePicker.target

DayPilot.Date.toString()

DayPilot.Locale.datePattern

DayPilot.DatePicker.locale

DayPilot.DatePicker Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript