title: How to round down getTime result (ignoring minutes and hours)
body: <p>I need to get the number of milliseconds of a certain day (even today), but need the result rounded down. </p>
  
  <p>For example the number of milliseconds until this moment by using <code>getTime()</code> method is <code>1432738826994</code>.</p>
  
  <p>I would like to round this down to get the number of milliseconds until the <strong>beginning of the day</strong>, I need to get rid of all the minutes and hours. Is there a clean and simple way of achieving this?</p>