title: Date converter in JAVA
body: <p>I have date like <code>Tue Mar 19 00:41:00 GMT 2013</code>, how to convert it to <code>2013-03-19 06:13:00</code>?</p>
  
  <pre><code>final DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  final Date date = bdate; 
  Date ndate = formatter.parse(formatter.format(date)); 
  System.out.println(ndate);
  </code></pre>
  
  <p>gives the same date.</p>