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

24hr versus AM/PM format

3 Answers 165 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Wim
Top achievements
Rank 1
Wim asked on 25 Oct 2010, 10:20 AM
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

3 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 27 Oct 2010, 08:07 AM
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
0
Wim
Top achievements
Rank 1
answered on 27 Oct 2010, 08:13 AM
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 
0
Kaloyan
Telerik team
answered on 29 Oct 2010, 08:49 AM
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
Tags
DateTimePicker
Asked by
Wim
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Wim
Top achievements
Rank 1
Share this question
or