Changing appointment time format to military time

3 posts, 1 answers
  1. David
    David avatar
    15 posts
    Member since:
    Jun 2014

    Posted 16 Sep 2015 Link to this post

    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. Answer
    Dess
    Admin
    Dess avatar
    1601 posts

    Posted 18 Sep 2015 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. David
    David avatar
    15 posts
    Member since:
    Jun 2014

    Posted 18 Sep 2015 in reply to Dess Link to this post

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

    Kind regards,

    David

Back to Top