title: Java Date cut off time information
body: <p>I have a Java Date object containing date and time information. I want to write a method that cuts off the time information, truncates the hours-minutes-seconds, so I only have the date left.</p>
  
  <p>Example input:</p>
  
  <pre><code>2008-01-01 13:15:00
  </code></pre>
  
  <p>Expected output:</p>
  
  <pre><code>2008-01-01 00:00:00
  </code></pre>
  
  <p>Do you have a tip? I tried doing something like this:</p>
  
  <pre><code>(timestamp / (24 * 60 * 60 * 1000)) * (24 * 60 * 60 * 1000)
  </code></pre>
  
  <p>but I ran into problems with the timezone.</p>