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

Entering Range in Date Picker

1 Answer 44 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Uttam Dhakal
Top achievements
Rank 1
Uttam Dhakal asked on 19 Apr 2013, 06:24 PM
I am trying to use the date picker with validation.
If the date is future date that mean date beyond tomorrow then it is invalid.
if the date is older than 1 year or 6 month then the date is invalid.
Also can i have a drop down in the date picker text box that has predefined dates like last week, last month, 2 months before which are updated dynamically everyday.

Any Ideas

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 20 Apr 2013, 03:22 PM
Hello,

RadDatePicker1.MinDate = DateTime.Now.AddMonths(-6); // Set Minimum Date
RadDatePicker1.MaxDate = DateTime.Now; // Set Maximum Date

By using above code you can set minimum/maximum Date.

Now can you please elaborate your DropDown scenario.

Thanks,
Jayesh Goyani
Tags
General Discussions
Asked by
Uttam Dhakal
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or