title: Converting Date to GMT 0 for accuracy
body: <p>I'm converting a date string to Unix timestamp in JavaScript. </p>
  
  <p>Here is what I get:</p>
  
  <p>August 26,2015 -- <strong>1440561600</strong></p>
  
  <p>What I should get :</p>
  
  <p>August 26,2015 -- <strong>1440547200</strong></p>
  
  <p>This is obviously happening because of the GMT not being set to 0. So essentially my time is<br/> <strong>Wed, 26 Aug 2015 04:00:00 GMT</strong></p>
  
  <p>When it really should convert:<br> <strong>Wed, 26 Aug 2015 00:00:00 GMT</strong>
  <br/><br/>
  So how can I get rid of the GMT in my date before I use <code>Date.getTime() / 1000</code> ? </p>
  
  <p>I have tried numerous methods from this website, and none of them have worked. NOTE: I don't want to use a library like Moment.js or anything else. Please let me know.</p>