title: How to convert "Mon Jun 18 00:00:00 IST 2012" to 18/06/2012?
body: <p>I have a value like the following <code>Mon Jun 18 00:00:00 IST 2012</code> and I want to convert this to <code>18/06/2012</code> </p>
  
  <p>How to convert this?</p>
  
  <p>I tried this method</p>
  
  <pre><code>public String toDate(Date date) {
          SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
          Date theDate = null;
          //String in = date + "/" + month + "/" + year;
          try {
              theDate = dateFormat.parse(date.toString());
              System.out.println("Date parsed = " + dateFormat.format(theDate));
          } catch (ParseException e) {
              e.printStackTrace();
          }
          return dateFormat.format(theDate);
      }
  </code></pre>
  
  <p>but it throws following exception : </p>
  
  <p><code>java.text.ParseException: Unparseable date: "Mon Jun 18 00:00:00 IST 2012"</code></p>