This is a migrated thread and some comments may be shown as answers.

Changing appointment time format to military time

2 Answers 143 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 16 Sep 2015, 06:47 PM

Hello,

Is there a way to change the default appointment times to use military time instead of regular time?  So instead of the appointment time showing 1:00 - 2:00 it would show 13:00 - 14:00.

Kind regards,

David

2 Answers, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 18 Sep 2015, 01:21 PM
Hello David,

Thank you for writing.
 
AppointmentElements in RadScheduler display their start/end time considering the RadScheduler.Culture property. If you set it to new System.Globalization.CultureInfo("en-GB"), the desired look will be achieved. Alternatively, the AppointmentTitleFormat gives you the opportunity to explicitly specify the exact format of an appointment title. Here is a sample code snippet demonstrating how to accomplish your requirement:
this.radScheduler1.AppointmentTitleFormat = "{0:HH:mm}-{1:HH:mm}";

I hope this information helps. Should you have further questions I would be glad to help.
 
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
David
Top achievements
Rank 1
answered on 18 Sep 2015, 06:37 PM

Thanks very much Dess, that was a simple fix for our issue!

Kind regards,

David

Tags
Scheduler and Reminder
Asked by
David
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
David
Top achievements
Rank 1
Share this question
or