Date gets changed after updating time in RadDatetimePicker

6 posts, 0 answers
  1. Mandy
    Mandy avatar
    33 posts
    Member since:
    Mar 2010

    Posted 03 Feb 2011 Link to this post

    Hello Admin,

    i am getting problem with RadDateTime picker control i.e.while clicking to edit the time in the date control field ,The date gets changed to the today's date,and existing date was changed,This should not be happen i only need to change the time,

    Please provide me any solution on this ASAP,

    Thanks

  2. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 07 Feb 2011 Link to this post

    Hello Mandeep,

    I tried to reproduce the described issue, but to no avail. Could you please post your RadDateTimePicker control declaration with a related code behind file and any javascript code which is related with the control. Thus we will be able to gather more details about your scenario and provide you with more to-the-point answer.

    All the best,
    Radoslav
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mandy
    Mandy avatar
    33 posts
    Member since:
    Mar 2010

    Posted 08 Feb 2011 Link to this post

    Hello Admin,

    Thanks for the reply, i had attached two screen shots i.e.date before and After make change to time, please have a look and provide the solution ASAP,

    <telerik:RadDateTimePicker ID="rdpDueDate" ClientEvents-OnDateSelected="rdpDueDatechange"
                                onfocus="javascript:rdpDueDateFocus();" runat="server">
                            </telerik:RadDateTimePicker>

     function rdpDueDatechange(sender, args) {
                    document.getElementById("hdrdpDueDate").value = String.format("{0:M/d/yyyy h:mm tt}", args.get_newDate());
                }

    function rdpDueDateFocus() {
                    document.getElementById('rdpDueDate_dateInput_text').value = document.getElementById("hdrdpDueDate").value;
                }


    Thanks,
  5. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 11 Feb 2011 Link to this post

    Hello Mandeep,

    I tried to reproduce the described issue but to no avail. I am sending you a simple example based on your code snippets. Please check it out and let me know what differs in your case.
    Looking forward for your reply.

    Best wishes,
    Radoslav
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  6. Mandy
    Mandy avatar
    33 posts
    Member since:
    Mar 2010

    Posted 28 Feb 2011 Link to this post

    Hello admin,

                       Thanks for reply, but my issue still present in my scenario, let me describe further for more clarification .
    i have saved due date for my current project in database and when i retrieve the same i assign that value to the RadDatetimepicker control. let us suppose the date stored in database was 2/23/2011 6:00 AM. and i tried to edit it on  24th of feb means 2/24/2011 .

    But i don't want to change the date instead i just want to change time to 7:00 PM.and the date should remains same in this case.

    Now the problem arise when i update time to 7:00 PM date gets changed to 2/24/2011 as well.


    Please provide the solution ASAP .


    Thanks,
  7. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 02 Mar 2011 Link to this post

    Hi Mandeep,

    Could you please post the code for a date time calculation over the saved in a database date. Also could you please try setting the Time zone on your computer to be the UTC (Coordinated Universal Time) and let me know if the issue still exists.

    Regards,
    Radoslav
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017