title: JavaScript two equal Date with different day
body: <p>I'm using method getDay() from Date() to get day of the week, then I notice that the same Date without time returns me a different day of the week</p>
  
  <pre><code>new Date().getDay()
  </code></pre>
  
  <p>this first one returns me <strong>3</strong></p>
  
  <pre><code>new Date('2017-09-27').getDay()
  </code></pre>
  
  <p>this one returns me <strong>2</strong></p>
  
  <p>Comparing these results with some friends I notice that almost everyone had different results, even worse, some people really got day 26 when the date 27 was written</p>
  
  <p>I'm almost sure this problem is caused by timezone issues but I can't find how get accurate results</p>