Entering Range in Date Picker

2 posts, 0 answers
  1. Uttam Dhakal
    Uttam Dhakal avatar
    29 posts
    Member since:
    Jan 2010

    Posted 19 Apr 2013 Link to this post

    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
  2. Jayesh Goyani
    Jayesh Goyani avatar
    2733 posts
    Member since:
    May 2010

    Posted 20 Apr 2013 Link to this post


    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.

    Jayesh Goyani
Back to Top