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
- year — a year.
- month — month, 0-11.
- dayOfMonth — day of month, 1-31.
- timeZone — optional time zone of resulting timestamp, defaults is the current time zone.
Returns
- the timestamp of the date.