title: Java date function which is not deprecated
body: <p>I simply need to print the date of the day on the console in this format: <code>Day.Month.Year</code>. Example: <code>03.10.09</code></p>
  
  <p>Code:</p>
  
  <pre><code>GregorianCalendar c = new GregorianCalendar();
  Date s =  c.getTime(); 
  System.out.println(s);
  </code></pre>
  
  <p>The console prints:</p>
  
  <pre><code>Sat Oct 03 13:33:36 CEST 2009
  </code></pre>
  
  <p>I could do it with a case statement, but I am sure there is something more elegant, which I simply didn't find.</p>