This is a migrated thread and some comments may be shown as answers.
RadDateTimePicker setting a range of 7 days
2 Answers 9 Views
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 04 Dec 2017, 01:44 PM

Is it possible to use one RadDateTimePicker and set it up for a range of seven days?

So, lets say the control says DateTime.Today is 12/1/2017, and I want a start date of seven days prior to this date. How can I do this?

 

C#

 

Thanks,

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 05 Dec 2017, 09:41 AM
Hello Brian,

You can set the Min/Max Date:
radDateTimePicker1.MinDate = DateTime.Now.AddDays(-7);
radDateTimePicker1.MaxDate = DateTime.Now;

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Brian
Top achievements
Rank 1
answered on 05 Dec 2017, 12:24 PM
Perfect! Thanks,
Asked by
Brian
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Brian
Top achievements
Rank 1
Share this question
or