How to set the year of a date based on value from drop down
<p>I have a drop down that has the years basically 2011,2010,2009 etc... and there is a date that i need to append the year selected to, basically I want to check todays date</p>

<pre><code>DateTime dt = DateTime.Today;
</code></pre>

<p>and then change the year of dt to the value selected of my drop down</p>

<p><code>dt.Year = ddlMyYear.SelectedValue;</code>  but this does not work, not sure how to do this..</p>

<p>Thank you</p>
