Android DatePicker year problem
<p>I have a DatePicker in my activity. I want to store the selected date when the user clicks a button like this.</p>

<pre><code>Date selectedDate=new Date(dp.getYear(), dp.getMonth(), dp.getDayOfMonth());
</code></pre>

<p>the problem is when the selected date is like today's: Feb 15 2010</p>

<p>the date returned from the </p>

<blockquote>
  <p>selectedDate</p>
</blockquote>

<p>is 3910-02-15, so the year is 3910 instead of 2011</p>

<p>what is wrong with this ?</p>

<p>Thanks</p>
