Skip to main content



AddDays Function

The AddDays function adds a specified number of days to a DateTime value.

Syntax

AddDays(dateTime, numDays)

The AddDays function adds a specified number of days to a DateTime value.

Arguments

dateTime DateTime - The base date and time.

numDays Integer - The number of days to add. A negative value will subtract days.

Remarks

Example:

AddDays("5/1/2000", 10); // returns 5/11/2000

Example:

AddDays("5/1/2000", -10); // returns 4/21/2000