New to Telerik UI for WinForms? Start a free 30-day trial
Enabling 24-Hour Format for Printing in Scheduler for UI for WinForms
Updated on Mar 10, 2026
Environment
| Product Version | Product | Author |
|---|---|---|
| 2026.1.210 | RadScheduler for WinForms | Dinko Krastev |
Description
The Scheduler displays the 24-hour format in its cells. But the print preview does not. By default, the DateFormat string of the printed cell is set to "hh:mm". That is the 12-hour time format.
Solution
To enable the 24-hour format in the print document, modify the DateFormat property of the SchedulerPrintCellElement. Use the CellPrintElementFormatting event handler to apply the desired format.
Here is the code snippet:
C#
private void RadScheduler1_CellPrintElementFormatting(object sender, PrintSchedulerCellEventArgs e)
{
e.CellElement.DateFormat = "HH:mm";
}