The dateTimePattern property (string) specifies the pattern used to format a DayPilot.Date value as date and time.
Declaration
DayPilot.Locale.dateTimePatternDefault Value
"M/d/yyyy H:mm"Notes
This format string uses the pattern syntax supported by DayPilot.Date.toString().
Example
const locale = new DayPilot.Locale("en-custom", {
dateTimePattern: "dd.MM.yyyy HH:mm",
// ...
});
DayPilot.Locale.register(locale);See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot