Set 1st Day Of Year At RadDatePicker

3 posts, 1 answers
  1. Yoon-Ho Choi
    Yoon-Ho Choi avatar
    22 posts
    Member since:
    Dec 2009

    Posted 08 Jan 2010 Link to this post

    Hi, All

    I want to set 1st Day Of Year At RadDatePicker
    when Page is Loaded

    For example

    Set 2010-01-01

    How can I do this
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 08 Jan 2010 Link to this post

    Hello Yoon-Ho choi,

    Add this code in PageLoad event in order to achieve the desired functionality.
    CS:
     
        protected void Page_Load(object sender, EventArgs e) 
        { 
            DateTime dateSelected = new DateTime(DateTime.Today.Year, 1, 1); 
            RadDatePicker9.SelectedDate = dateSelected; 
        } 

    -Shinu.
  3. Yoon-Ho Choi
    Yoon-Ho Choi avatar
    22 posts
    Member since:
    Dec 2009

    Posted 08 Jan 2010 Link to this post

    Thank you Shinu it works well
Back to Top