title: How do you get the unix timestamp for the start of today in javascript?
body: <p>I realize that the current timestamp can be generated with the following...</p>
  
  <pre><code>var timestamp = Math.round((new Date()).getTime() / 1000);
  </code></pre>
  
  <p>What I'd like is the timestamp at the beginning of the current day.  For example the current timestamp is roughly <code>1314297250</code>, what I'd like to be able to generate is <code>1314230400</code> which is the beginning of today <code>August 25th 2011</code>.</p>
  
  <p>Thanks for your help.</p>