RadDateTimePicker setting a range of 7 days

3 posts, 1 answers
  1. Brian
    Brian avatar
    37 posts
    Member since:
    Jul 2010

    Posted 04 Dec 2017 Link to this post

    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. Answer
    Dimitar
    Admin
    Dimitar avatar
    2960 posts

    Posted 05 Dec 2017 Link to this post

    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.
  3. Brian
    Brian avatar
    37 posts
    Member since:
    Jul 2010

    Posted 05 Dec 2017 in reply to Dimitar Link to this post

    Perfect! Thanks,
Back to Top