How can I get Date in MM/DD/YY format from Timestamp
<p>I want to get the Date in MM/DD/YY format from the timestamp. </p>

<p>I search many but I dont get any Idea...</p>

<p>I use below method but It not gives proper output</p>

<pre><code>final Calendar cal = Calendar.getInstance();

cal.setTimeInMillis(Long.parseLong(1306249409));

Log.d("Date--",""+cal.DAY_OF_MONTH);

Log.d("Month--",""+cal.MONTH);

Log.d("Year--",""+cal.YEAR);
</code></pre>

<p>But its gives the output like below</p>

<p>Date--5
Month--2
Year--1</p>

<p>The correct date is 24 May 2010 for Timestamp - 1306249409</p>

<p>Note -  Timestamp is get bye the webservice which is used in my application</p>
