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

Default date

1 Answer 11 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Nenna
Top achievements
Rank 1
Nenna asked on 26 Nov 2019, 06:11 PM
How do I set a default date of 30 days from today?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 29 Nov 2019, 08:35 AM

Hello Nenna,

 

You can use one of these properties to achieve this requirement:

    protected void Page_Load(object sender, EventArgs e)
    {
        RadDatePicker1.SelectedDate = DateTime.Today.AddDays(30);
        RadDatePicker1.FocusedDate = DateTime.Today.AddDays(30);
    }

I hope this will prove helpful. Let me know if I can assist with anything else.

 

Regards,
Eyup
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
DatePicker
Asked by
Nenna
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or