DayPilot.Calendar.eventMovingStartEndFormat

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.eventMovingStartEndFormat

Possible Values

  • "Auto" - uses H:mm in 24-hour locales and h:mm tt in 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.Date.toString()

DayPilot.Calendar.eventMovingStartEndEnabled

DayPilot.Calendar.eventMoveHandling

DayPilot.Calendar Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript