title: google apps scripts date formatting
body: <p>I'm having trouble with something that should be very simple - just creating a Date() in Google Apps Script (javascript)</p>
  
  <pre><code>var thisdate = new Date('2017-02-12');
  Logger.log(thisdate.toString());
  </code></pre>
  
  <p>This test results in 'Invalid Date'... I must be missing something really obvious!?</p>
  
  <p>Thanks</p>