title: How can I create a Date object with a specific format
body: <pre><code>String testDateString = "02/04/2014";
  DateFormat df = new SimpleDateFormat("dd/MM/yyyy"); 
  
  Date d1 = df.parse(testDateString);
  String date = df.format(d1);
  </code></pre>
  
  <p>Output String:</p>
  
  <blockquote>
    <p>02/04/2014</p>
  </blockquote>
  
  <p>Now I need the Date <code>d1</code> formatted in the same way (<em>"02/04/2014"</em>).</p>