addToDate

Adds time to the date.

Syntax

addToDate(date, type, amount)

Parameters

date

Specifies the date value as a 64-bit number representing the number of milliseconds since January 1, 1970.

type

Type of time units added to date. Possible values are SECONDS, MINUTES, HOURS, DAYS, WEEKS, MONTHS, YEARS.

amount

Number of time units to add to date.

Returns

Returns a numeric value representing the specified date.