Problem With RadTimePicker

3 posts, 0 answers
  1. Hani Arab
    Hani Arab avatar
    2 posts
    Member since:
    Jul 2008

    Posted 11 Jan 2010 Link to this post

    When we select any time from the list (AM/PM) it will show only AM within the textbox.

    i.e.
    11:00 AM and 11:00 PM( or 23:00 PM) both are displayed 11:00 AM after the time is selected and time picker pop up is closed.

    Any idea what the problem could be?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 Jan 2010 Link to this post

     Hello Hani,

    By default the RadTimePicker displays the AM/PM designator according to the selection made. Check if you have set any date format for the control? I tried the following format and it works as expected:

    aspx:
     <telerik:RadTimePicker ID="RadTimePicker1" runat="server"
        <DateInput runat="server" DateFormat="hh:mm tt" > 
        </DateInput> 
     </telerik:RadTimePicker> 

    Thanks
    Princy.
  3. Hani Arab
    Hani Arab avatar
    2 posts
    Member since:
    Jul 2008

    Posted 12 Jan 2010 Link to this post

    Thanks Princy.

    Yesterday, I found the problem. we have been using a wrong date format. "hh:mm:tt" which must be "hh:mm tt".

    You hit the target ;) it was the date format causing the unexpected behavior.
Back to Top