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

Show 24 hour in RadTimePicker

1 Answer 437 Views
TimePicker
This is a migrated thread and some comments may be shown as answers.
Cheau-Long
Top achievements
Rank 1
Cheau-Long asked on 22 Jun 2011, 07:45 PM
How I can show 24 hour in RadTimePicker? Thanks!

1 Answer, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 23 Jun 2011, 07:58 AM
Hello Cheau-Long,

The date format of RadTimePicker control is dependant on the culture used. Basically you could change the formatting by changing the culture or defini a custom date format. Please, check this help article for more details.

I hope this helps.

Kind regards,
Dani
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
Paul
Top achievements
Rank 2
Iron
Iron
Iron
commented on 08 Nov 2021, 11:45 AM

A rather unhelpful RTFM type answer!

The article does not explain how to set the time format in xaml.

Stenly
Telerik team
commented on 11 Nov 2021, 09:27 AM

Hello Paul,

Currently, the time format for the TimePicker control can only be set in code-behind, as shown in the article provided by my colleague. With this in mind, the following code snippet shows how to set the time format for the control:

this.timePicker.Culture = new System.Globalization.CultureInfo("de");
this.timePicker.Culture.DateTimeFormat.LongTimePattern = "h tt";
Tags
TimePicker
Asked by
Cheau-Long
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or