title: why javascript's .getTime() + 24*60*60*1000 get's stack after 27 Oct 2013?
body: <p>I was just creating a simple calendar when users clicks next it gets the following day, very simple code:</p>
  
  <pre><code>var dateSelected = new Date('02/06/2013'); //any date 
  var day = new Date(dateSelected.getTime() + 24*60*60*1000);
  alert(day.getDate());
  </code></pre>
  
  <p>that works great for all dates but for some reason it doesn't get the next day when the date is 27 Oct 2013</p>
  
  <pre><code>var dateSelected = new Date('10/27/2013');
  </code></pre>
  
  <p>I don't seem to be able to figure out why, if I go manually to the next day 28 Oct it keeps working fine.</p>
  
  <p>Any ideas why this happens?</p>
  
  <p>UPDATE:
  I fixed it by adding the time as well as the date:</p>
  
  <pre><code>var dateSelected = new Date('10/27/2013 12:00:00');
  </code></pre>