The Fauna service will be ending on May 30, 2025.

For more information on the service wind down, see our announcement and the Fauna Service End-of-Life FAQ.

date.add()

Add number of days to a Date.

Signature

add(amount: Number, unit: String) => Date

Description

Adds a number of days to a Date, returning the resulting Date.

Parameters

Parameter Type Required Description

amount

Number

true

Number of units to add to the given date.

unit

Number

true

Unit for the operation. Must be days (case-sensitive).

Return value

Type Description

Date

Date with the added days.

Examples

fqlCopied!
Date('2099-02-10').add(19, 'days')
Date("2099-03-01")
\