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

Client Side RadDatePicker

1 Answer 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Raymond
Top achievements
Rank 1
Raymond asked on 11 Dec 2013, 05:16 PM

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');




1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Dec 2013, 02:39 AM
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.
Tags
General Discussions
Asked by
Raymond
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or