title: how to enter day , month & year in dropdownlist from textbox in asp.net
body: <p><br>
  I have a 3 dropdownlist for Day, Month &amp; year . I am trying to put date from textbox to dropdownlist by breaking date into day , month and year.
  Heres the code:<br></p>
  
  <pre><code>DDLDay.Text = Convert.ToDateTime(txtspousedob.Text).Day.ToString();
  DDLMonth.Text =Convert.ToDateTime(txtspousedob.Text).Month.ToString();
  DDLYear.Text = Convert.ToDateTime(txtspousedob.Text).Year.ToString();
  </code></pre>
  
  <p>Date that I have is "01/01/2002" but I am getting is </p>
  
  <blockquote>
    <p>DDLDay gets "18"<br>
    DDLMonth gets "05"<br>
    DDLyear gets "2002"</p>
  </blockquote>
  
  <p>So , what is the correct way to get the output</p>
  
  <p>Thanks</p>