The datePattern property (string) specifies the pattern used to format a DayPilot.Date value as a date without the time part.
Declaration
DayPilot.Locale.datePatternDefault 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]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot