0

In JavaScript, the following returns a valid Date object:

new Date('2016-10-30')

But from a Google Apps Script, it returns an invalid date object. So it looks like the assumption that GAS's Date is just the same as JavaScript's does not hold, and I can't find it's documentation.

pnuts
  • 56,678
  • 9
  • 81
  • 133
Jerome
  • 2,312
  • 14
  • 24
  • 1
    gas is javascript. look at the official date documentation and you will see it depends on the ecmascript version and browser. – Zig Mandel Oct 31 '16 at 01:34