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
  • 58,317
  • 11
  • 87
  • 139
Jerome
  • 2,350
  • 14
  • 25
  • 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