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

rad time picker

2 Answers 103 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Ritzie
Top achievements
Rank 1
Ritzie asked on 08 Jul 2009, 01:55 PM
hello all ,
  I am using radTimepicker now it is taking 1 24 hr clock I want that it should take a 12 hr clock.
Please reply soon

Ritzie

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Jul 2009, 06:07 AM
Hi Ritzie,

Set the TimeFormat property of RadDatePicker TimeView to "hh:mm tt" in order to show 12 hour clock.

ASPX:
 
<telerik:RadTimePicker ID="RadTimePicker1" runat="server"
    <TimeView TimeFormat="hh:mm tt" > 
    </TimeView> 
</telerik:RadTimePicker> 

-Shinu.
0
Martin
Telerik team
answered on 09 Jul 2009, 06:43 AM
Hello Ritzie,

In order to enable the 12 hour clock format you need to set the DateFormat (and DisplayDateFormat optionally) properties of the embedded DateInput control. In addition if you want to switch the popup view too, you need to set the TimeFormat property of the embedded TimeView control. Please note that AM/PM designators appearance depends on the CultureInfo object set to the Culture property of the picker.
Please take a look to the following link for additional information:

Formatting Values

Regards,
Martin
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.
Tags
Calendar
Asked by
Ritzie
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Martin
Telerik team
Share this question
or