title: Convert EEE MMM dd HH:mm:ss ZZZ yyyy to YYYY-MM-dd JAVA
body: <p>I want to convert : <code>Thu Feb 02 00:00:00 WET 2012</code> to <code>02/02/2012</code> (with date type not string) using JAVA. </p>
  
  <p>I did </p>
  
  <pre><code>String date = "Thu Feb 02 00:00:00 WET 2012";
  SimpleDateFormat formatnow = new SimpleDateFormat("EEE MMM dd HH:mm:ss ZZZ yyyy", Locale.ENGLISH); 
  SimpleDateFormat formatneeded=new SimpleDateFormat("YYYY-MM-dd");
  Date date1 = formatnow.parse(date);
  String date2 = formatneeded.format(date1);
  Date date3= formatneeded.parse(date2);
  System.out.println(date3);
  </code></pre>
  
  <p>And I'm having : <code>Thu Feb 02 00:00:00 WET 2012</code>.
  Can anyone tell me where is the problem ?? </p>