title: Javascript Dates : change time
body: <p>Do you know an elegant way to change the time in a Date Object in javascript</p>
  
  <p>The strangness is those setters that return Number object </p>
  
  <pre><code>var date = new Date().setHours(0,0,0,0);
  </code></pre>
  
  <p>date is a Number not a date..</p>
  
  <p>so let's say I have a date
      var date = new Date()</p>
  
  <p>and I want to change time</p>
  
  <p>Thank you</p>