Client Side RadDatePicker

2 posts, 0 answers
  1. Raymond
    Raymond avatar
    19 posts
    Member since:
    Aug 2013

    Posted 11 Dec 2013 Link to this post

    I don't understand why this works:



    $find("<%=MyDate.ClientID%>").set_selectedDate('Tue Dec 3 00:00:00 PST 2013');


    But, this doesn't:

    $find("<%=MyDate.ClientID%>").set_selectedDate('12/3/2013');




  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 11 Dec 2013 Link to this post

    Hi Raymond,

    The set_selectedDate() method takes Date object as parameter. Please have a look into the following code snippet which works fine at my end.

    JavaScript:
    $find("<%=RadDatePicker1.ClientID%>").set_selectedDate(new Date('2013/12/3'));

    Thanks,
    Shinu.
Back to Top