title: Why are the calculated dates different in Internet Explorer and Chrome?
body: <p>So I'm using this to try to get the day before today. This works fine in Chrome but IE thinks its the day before that. My current system date is 09/05/2014 10:14 (PST).</p>
  
  <pre><code>var todaysDate = new Date();
  var maxDate = new Date(Date.UTC(todaysDate.getFullYear(),todaysDate.getMonth(),todaysDate.getDate()-1));
  </code></pre>
  
  <p>Its worth mentioning that both IE and Chrome return the value 9 for the following.</p>
  
  <pre><code>console.log(todaysDate.getDate());
  </code></pre>
  
  <p>So if today = 09/05/2014 (PST)</p>
  
  <p>Chrome gets 08/05/2014</p>
  
  <p>IE gets 07/05/2014</p>
  
  <p>What's going on? Why is IE interpreting this differently to Chrome?</p>