title: Get Today's date in Java at midnight time
body: <p>I need to create two date objects. If the current date and time is March 9th 2012 11:30 AM then </p>
  
  <blockquote>
    <ul>
    <li>date object d1 should be <strong>9th March 2012 12:00 AM</strong></li>
    <li>date object d2 should contain the current date itself</li>
    </ul>
  </blockquote>
  
  <p>The date will not be entered, it is system date.</p>
  
  <p><strong>Update</strong>: </p>
  
  <pre><code>Date dt = new Date();
  System.out.print(dt.toString());
  </code></pre>
  
  <p>gives current date and time</p>