24hr versus AM/PM format

4 posts, 0 answers
  1. Wim
    Wim avatar
    2 posts
    Member since:
    Sep 2010

    Posted 25 Oct 2010 Link to this post

    Hi everyone,
    Is there an easy way to set the Clock style (both in dropdown part as in the textbox displaying the selectedvalue) to 24hr-format?
    I could not find a simple - let's say a checkbox? - property to indicate 24hr format YES/NO ... :)

    Any help is highly appreciated..
    Thanks
    Wim
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 27 Oct 2010 Link to this post

    Hi Wim,

    The formant depends on the culture format. Try this one.
    radTimePicker.Culture = new System.Globalization.CultureInfo("en-US")
            {
                DateTimeFormat = new System.Globalization.DateTimeFormatInfo
                {
                    ShortTimePattern = "hh:mm tt"
                }
            };

    All the best,
    Kaloyan
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Wim
    Wim avatar
    2 posts
    Member since:
    Sep 2010

    Posted 27 Oct 2010 Link to this post

    Hi Kaloyan!
    thanks for the reply - meanwhile i figured it out as well
    Could be an improvement for next releases? A property to set the clock to a custom format?
    Cheers,
    Wim 
  5. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 29 Oct 2010 Link to this post

    Hi Wim,

    Thanks for the suggestion. We will consider it for the next release. Meanwhile you can set it as an attached property as well.

    Greetings,
    Kaloyan
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top