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

RadTimePicker AM/PM issue

1 Answer 285 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vitaly
Top achievements
Rank 1
Vitaly asked on 28 Jul 2011, 04:51 PM
Hi guys,
I need your help to solve the problem.
I have two RadTimePicker control:

<

 

telerik:RadTimePicker ID="StartTime" runat="server" Width="90px" Height="12px" Skin="Vista" PopupDirection="BottomLeft" Culture="en-US" >

 

 

<TimeView runat="server" ID="TimeView1" Columns="3" RenderDirection="Horizontal" ></TimeView>

 

 

<ClientEvents OnDateSelected="DateSelected" />

 

 

<TimePopupButton ImageUrl="../../Image/clock_icon.jpg" HoverImageUrl="../../Image/clock_icon.jpg" />

 

 

<DateInput TabIndex="5" Font-Bold="true" DisabledStyle-Font-Bold="true" DisabledStyle-BackColor="#EFEFEF" runat="server" DateFormat="h:mm tt" DisplayDateFormat="h:mm tt"></DateInput>

 

 

</telerik:RadTimePicker>

 



<

 

telerik:RadTimePicker ID="EndTime" runat="server" Width="90px" Height="12px" Skin="Vista" PopupDirection="BottomLeft" Culture="en-US" >

 

 

<TimeView runat="server" ID="TimeView2" Columns="3" RenderDirection="Horizontal" ></TimeView>

 

 

<ClientEvents OnDateSelected="DateSelected" />

 

 

<TimePopupButton ImageUrl="../../Image/clock_icon.jpg" HoverImageUrl="../../Image/clock_icon.jpg" />

 

 

<DateInput TabIndex="6" Font-Bold="true" DisabledStyle-Font-Bold="true" DisabledStyle-BackColor="#EFEFEF" runat="server" DateFormat="h:mm tt" DisplayDateFormat="h:mm tt"></DateInput>

 

 

</telerik:RadTimePicker>

 



When I am entering in StartTime Box 0930 - it shows 9:30 AM which is correct
When I am entering in EndTimeBox  315 - it shows 3:15 AM - this is not correct.I need to see in EndTime Box 3:15 PM

Please Help me with this.
Thanks so much.

1 Answer, 1 is accepted

Sort by
1
Shinu
Top achievements
Rank 2
answered on 29 Jul 2011, 04:49 AM
Hello Vitaly,

Try the following scenario to resolve the AM/PM issue.
aspx:
<telerik:RadTimePicker ID="Starttime" runat="server" TimeView-TimeFormat="t"
            DateInput-DateFormat="h:mm tt" DateInput-DisplayDateFormat="h:mm tt" Culture="en-US">
</telerik:RadTimePicker>
<telerik:RadTimePicker ID="Endtime" runat="server" TimeView-TimeFormat="t"
            DateInput-DateFormat="h:mm tt" DateInput-DisplayDateFormat="h:mm tt" Culture="en-US">
</telerik:RadTimePicker>

Thanks,
Shinu.
Tags
General Discussions
Asked by
Vitaly
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or