title: Change the format of date and print.
body: <p>I have a date in Java like this:</p>
  
  <pre><code>09-06-2009 00:00:00
  </code></pre>
  
  <p>I wish I could print them as :</p>
  
  <pre><code>2009-09-06 00:00:00
  </code></pre>
  
  <p>How do I do it?</p>