Home Search

DriveWorks Pro 24
DateAddWeeks

Send Feedback

DateAddWeeks

Adds a specified number of weeks to a date value.

Syntax

DateAddWeeks(Start Date, Weeks)

Where:

Start Date The date to adjust.

Weeks The number of weeks to add. Negative values can be used to subtract.

Examples

Example 1

DateAddWeeks(Now(),12)

Will add 12 weeks to the result of the Now function.

Example 2

DateAddWeeks(Now(),-6)

Will subtract 6 weeks from the result of the Now function.

Example 3

DateAddWeeks(DatePicker1Return,-6)

Will subtract 6 weeks from the result of the Date Picker control.