Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TimePicker > Display Time in Military Time

Not answered Display Time in Military Time

Feed from this thread
  • Billy Jacobs avatar

    Posted on Jun 5, 2009 (permalink)

    Is it possible to show the times in the RadTimePicker in Military Time format?

    Thanks,

    Billy Jacobs

    Reply

  • Billy Jacobs avatar

    Posted on Jun 5, 2009 (permalink)

    I see how to use military time now by setting the starttime and endtime to "0:0:0" and "23:0:0" but how do you set it back programatically?

    Reply

  • Q1 Webinar Week
  • Boyan Boyan admin's avatar

    Posted on Jun 9, 2009 (permalink)

    Hi Billy ,

    You can set the culture by changing the culture of the control. Use this code:
    timepicker1.Culture = new CultureInfo("en-gb"); 

    This will set the RadTimePicker to military time if you want AM/PM change culture to "en-us".

    Hope this helps.

    All the best,
    Boyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

  • Billy Jacobs avatar

    Posted on Jun 9, 2009 (permalink)

    Is there a way to set it in a style based on the value of another control such as a checkbox.

    My problem is that my TimePicker is in a datatemplate and I can access is programatically. So if I could use Triggers to set the the Culture property based on whether a checkbox was checked or not would solve my problem.

    Thanks,

    Billy Jacobs

    Reply

  • Boyan Boyan admin's avatar

    Posted on Jun 11, 2009 (permalink)

    Hello Billy Jacobs,

    You can do this by using triggers. The solution will be different depending on whether the Checkbox is in the template or not . You can take a look at this article that will give you an idea on how it can be done.
     
    If you need more help please let me know.

    Best wishes,
    Boyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

  • Q1 Webinar Week

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TimePicker > Display Time in Military Time
Related resources for "Display Time in Military Time"

WPF TimePicker Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]