The eventMovingStartEndFormat property (string) specifies the date/time format used by the inline start and end indicators shown during event moving in the JavaScript Calendar component.
Declaration
DayPilot.Calendar.eventMovingStartEndFormatPossible Values
"Auto"- usesH:mmin 24-hour locales andh:mm ttin 12-hour locales.Custom format string - uses the pattern syntax documented by DayPilot.Date.toString() to format both inline indicators.
Default Value
"Auto"Notes
The inline indicators are shown only when DayPilot.Calendar.eventMovingStartEndEnabled is set to true.
Use a custom format such as "h:mm tt" when you need the moving shadow to display a locale-independent time pattern.
Examples
JavaScript
const calendar = new DayPilot.Calendar("dp", {
eventMovingStartEndFormat: "h:mm tt",
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>config: DayPilot.CalendarConfig = {
eventMovingStartEndFormat: "h:mm tt",
// ...
};React
<DayPilotCalendar
eventMovingStartEndFormat="h:mm tt"
{/* ... */}
/>Vue
<DayPilotCalendar
eventMovingStartEndFormat="h:mm tt"
<!-- ... -->
/>See Also
Event Moving [doc.daypilot.org]
DayPilot.Calendar.eventMovingStartEndEnabled
DayPilot.Calendar.eventMoveHandling
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot