how to set raddatepicker date input box with c#

user710502 picture user710502 · Feb 22, 2012 · Viewed 15.1k times · Source

I am trying to set the date to "todays " date in the rad date picker but all it does is it selects it in the calendar but the box where the date is displayed is empty (i.e 12/2/2012) is not showing... Here is my line of code, (i have seen some examples in google but they are all javascript, i need to do it on the back end C#).

 rdpShipDate.Calendar.SelectedDate = DateTime.Today;

That line above just selecs the date in the calendar but the box is still empty.

Any help would be much appreciated.

Thanks

Answer

Botonomous picture Botonomous · Feb 22, 2012

Have you tried:

rdpShipDate.SelectedDate = DateTime.Today;