The timeFormat property (string) specifies the hour clock format used by the Scheduler.
Declaration
DayPilot.Scheduler.timeFormatPossible Values
"Auto"tries to determine the format from the culture or locale."Clock12Hours"uses the 12-hour clock format."Clock24Hours"uses the 24-hour clock format.
Default Value
"Auto"Examples
JavaScript
const dp = new DayPilot.Scheduler("dp", {
timeFormat: "Clock24Hours",
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
timeFormat: "Clock24Hours",
// ...
};React
<DayPilotScheduler
timeFormat="Clock24Hours"
{/* ... */}
/>Vue
<DayPilotScheduler
timeFormat="Clock24Hours"
<!-- ... -->
/>See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot