DayPilot.Locale.datePattern

The datePattern property (string) specifies the pattern used to format a DayPilot.Date value as a date without the time part.

Declaration

DayPilot.Locale.datePattern

Default Value

'M/d/yyyy'

Notes

This format string uses the pattern syntax supported by DayPilot.Date.toString().

Example

const locale = new DayPilot.Locale("en-custom", {
  datePattern: "dd.MM.yyyy",
  // ...
});
DayPilot.Locale.register(locale);

See Also

Header Date Format [doc.daypilot.org]

DayPilot.Date.toString()

DayPilot.Locale.register()

DayPilot.Locale Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript