Date Picker - Selected Date

3 posts, 1 answers
  1. John
    John avatar
    18 posts
    Member since:
    Oct 2010

    Posted 14 Apr 2011 Link to this post

    I know that I can set the selected date of the date picker in the properties window under the "Date Selection"  section but I want to set the date in the code behind, how do you do that?

    Thanks
  2. Answer
    Dean
    Dean avatar
    43 posts
    Member since:
    Jun 2009

    Posted 15 Apr 2011 Link to this post

    You can change the controls SelectedDate property in code-behind like this for example.

    RadDatePicker1.SelectedDate = Date.Today

  3. John
    John avatar
    18 posts
    Member since:
    Oct 2010

    Posted 15 Apr 2011 Link to this post

    Thanks
Back to Top