title: Javascript Date using forward-slashes vs hyphens
body: <p>When I'm creating a new Date object and pass in a date using hyphens</p>
  
  <pre><code>new Date("2015-07-02") // I get Thu Jul 02 2015 01:00:00 GMT+0100 (IST)
  </code></pre>
  
  <p>and when I use forward slashes</p>
  
  <pre><code>new Date("2015/07/02") // I get Thu Jul 02 2015 00:00:00 GMT+0100 (IST)
  </code></pre>
  
  <p>notice the time difference: 01:00:00 for hyphens and 00:00:00 for forward slashes</p>
  
  <p>this breaks my code :(</p>
  
  <p>Why this is happening? 
  Any workaround for this? (Should I just set time to 00:00:00 when using hyphens?)</p>
  
  <p>I need to be able to compare dates that have forward-slashes with dates that have hyphens and I'm not sure I might need to compare dates with some other symbols. </p>
  
  <p>Is this happening to hyphens only?</p>
  
  <p>Thanks.</p>