title: Calculating a day given a Date
body: <p>From a given Date I need to calculate midnight of its day. Here's what I came up with. It's so ugly that I figure there must be a better way.</p>
  
  <pre><code>private Date day(Date creation) {
      Calendar calendar = Calendar.getInstance();
      calendar.setTime(creation);
      calendar.set(Calendar.HOUR_OF_DAY, 0);
      calendar.set(Calendar.MINUTE, 0);
      calendar.set(Calendar.SECOND, 0);
      calendar.set(Calendar.MILLISECOND, 0);
      return calendar.getTime();
  }
  </code></pre>
  
  <p>Suggestions?</p>
  
  <p>Kent</p>