How to show 11:59:00 PM in RadDateTimePicker

2 posts, 0 answers
  1. Vincy
    Vincy avatar
    10 posts
    Member since:
    Aug 2013

    Posted 21 May 2014 Link to this post

    Hi All,
    I have a RadDateTimePicker defined like this:

     <telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server">          

    and I have used this code in PageLoad function:
     if (!Page.IsPostBack)

                    List<DateTime> dateList = new List<DateTime>();

                    for (int hour = 0; hour < 24; hour++)
                    dateList[0] = dateList[0].AddDays(1).AddMinutes(-1);

                    RadDateTimePicker1.TimeView.DataList.DataSource = dateList;

    Above code is used to display 11:59:00 PM in the time selection, but my issue is , whenever I select any Time , then 5:30 hours get automatically added to the time.
    for eg. If i select 2:00 PM, then 7:30PM get displayed in the RadDateTimePicker.

    Please help.
  2. Viktor Tachev
    Viktor Tachev avatar
    1786 posts

    Posted 26 May 2014 Link to this post

    Hi Vincy,

    I tried replicating the behavior you describe, however I was unable to. I made a short video showing the behavior on my side. Also I am attaching the sample project I used for testing.

    Would you give it a try and let me know if I am missing something? Also could you describe what needs to be changed in the sample in order for the issue to be observed? This would allow us to reproduce the problem locally and look for its cause.

    Viktor Tachev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top