Android long to date conversion goes wrong
<p>I oonvert a date into long.
Sat May 05 2012 16:39:00 -> 1336235940000</p>

<p>Then I convert this back to a date and I get  6-4-112 16:39</p>

<pre><code>long tmp = 1336235940000l;  
Date d = new Date(tmp);
int aYear = d.getYear();
int aMonth = d.getMonth();
int aDay = d.getDay();
int aHour = d.getHours();
int aMinutes = d.getMinutes();
String str_dateA = aDay + "-" + aMonth + "-" + aYear + " " + aHour + ":" + aMinutes;
Log.i("longtodate", str_dateA + "");
</code></pre>

<p>aMonth could be 4 if the first month is 0, but how can day be 6 instead of 5?? year is 112?
What is wrong??</p>
