date

number date(year,month,dayOfMonth,timeZone)

Returns a timestamp for midnight at the date in the timeZone.

Note! Months are 0-11, not 1-12.

Parameters

  1. year — a year.
  2. month — month, 0-11.
  3. dayOfMonth — day of month, 1-31.
  4. timeZone — optional time zone of resulting timestamp, defaults is the current time zone.

Returns