title: Set a Date Object Java
body: <p><strong>I have a date object myDate(say).
  After doing the following:</strong></p>
  
  <pre><code>Calendar cal = Calendar.getInstance();
  cal.set(Calendar.MONTH, 9);
  cal.set(Calendar.DATE, 24);
  cal.set(Calendar.YEAR, 2013);
  cal.set(Calendar.HOUR,13);
  cal.set(Calendar.MINUTE,45);
  cal.set(Calendar.SECOND,52);
  </code></pre>
  
  <p><strong>I want to set the myDate object to the above values and hence show the below output.</strong></p>
  
  <pre><code>Mon Sep 09 13:45:52 PST 2013
  </code></pre>
  
  <p><strong>Please let me know how to do it.</strong></p>