title: Date() method of javascript while passing a timestamp adds a day to the result
body: <p>I am trying to get a date out of the time stamp I have (which is like the format : <code>2012-08-31T18:30:00</code>, coming from a date picker)</p>
  
  <pre><code>   var value = "2012-08-31T18:30:00";
  
     var date = new Date(value);
  </code></pre>
  
  <p>The result of this(date) is: <code>Sat Sep 01 2012 00:00:00 GMT+0530 (India Standard Time)</code></p>
  
  <p>Here <code>Date()</code> function is adding a day to the given date. I have tried this for different inputs but always I get the result with one day added to it. I tried googling and searched Stack overflow too, but couldn't get a valid answer. Can anyone tell me why it is happening and how to resolve this? </p>
  
  <p>Thanks,
  Riswan</p>