Add units a datetime. Negative values will do the same as SUBTRACT_FROM_DATETIME.

Declaration

ADD_TO_DATETIME(datetime, number, unit_string) -> datetime

Parameters

datetime (type: object)
Any valid datetime
number (type: number)
How many units you want to add to the datetime
unit_string (type: string)
The value of the units to add.

Return Values

datetime (type: datetime)
The resulting datetime by adding the number of units to the input datetime.

Was this article helpful?

0 out of 0 found this helpful

Add comment

Please sign in to leave a comment.