Home Search

DriveWorks Pro 24
DateAddDays

Send Feedback

DateAddDays

Adds a specified number of days to a date value.

Syntax

DateAddDays(Start Date, Days)

Where:

Start Date The date to adjust.

Days The number of days to add. Negative values can be used to subtract.

Examples

Example 1

DateAddDays(Today(),2)

Will add two days to the result of the Today function.

Example 2

DateAddDays(Today(),-2)

Will subtract two days from the result of the Today function.

Example 3

DateAddDays(DatePickerReturn,2)

Will add two days to the result coming from the DatePicker control.