Java new Date with time stamp in date format
<p>I have used the following </p>

<pre><code>SimpleDateFormat df = new SimpleDateFormat("dd-mm-yyyy hh:mm:ss zzz");  
Date date = new Date(); 
String formattedDate= df.format(date);

Date dateWithTime = df.parse(formattedDate);
</code></pre>

<p>i got the formatted date as string when i conver this into date i got error like </p>

<pre><code>java.text.ParseException: Unparseable date: "Tue Feb 26 11:45:43 IST 2013"
</code></pre>

<p>How would convert to date or how i format a current date and get as date?</p>
