title: how can i set time value to 00:00:00 in the dateformat such as Tue Dec 28 17:36:28 IST 2010?
body: <p>I'm using Java and
  I'm trying the below piece of code</p>
  
  <pre><code>Calendar cal1 = Calendar.getInstance();  
  cal.setTime(now1);
  cal1.add(Calendar.DAY_OF_YEAR, -1);  
  java.util.Date yesterday = (Date) cal1.getTime();  
  System.out.println(yesterday.toString());
  java.sql.Timestamp yesterdayTimestamp = new java.sql.Timestamp(tomorrow.getTime());
  System.out.println(yesterdayTimestamp.toString()); 
  </code></pre>
  
  <p>which gives me the output as <code>Tue Dec 28 17:36:28 IST 2010</code>
  Now I want to set the time in this to <code>00:00:00</code> then
  <code>Tue Dec 28 17:36:28 IST 2010</code> will be <code>Tue Dec 28  00:00:00 IST 2010</code></p>
  
  <p>I'm not getting how to do this?</p>