Imtiaz Ali
Imtiaz Ali

Reputation: 13

Set current PC date and Time as Default in RadDatePicker

In telerik:RadDatePicker the Date is By default Current Date but time is by default 12:00:00 AM, 06-11-14 12:00 AM. I want to set current PC date and Time as Default in RadDatePicker

Upvotes: 1

Views: 5590

Answers (2)

Yazan Fahad Haddadein
Yazan Fahad Haddadein

Reputation: 533

i'm using the following markup:

<telerik:raddatepicker 
         id="rdpValueDate" 
         runat="server"
         mindate="<%# DateTime.Now.Date %>" 
         maxdate="01/01/3000">
</telerik:raddatepicker>

Upvotes: 2

Steve Lillis
Steve Lillis

Reputation: 3256

In the Page_Load of your code-behind:

myDatePicker.SelectedDate = DateTime.Now;

Upvotes: 3

Related Questions