Skip to main content



AddWeekdays Function

The AddWeekdays function adds a specified number of weekdays to a DateTime value.

Syntax

AddWeekdays(dateTime, numWeekdays)

The AddWeekdays function adds a specified number of weekdays to a DateTime value.

Arguments

dateTime DateTime - The base date and time.

numWeekdays Integer - The number of weekdays to add. A negative value will subtract weekdays.

Remarks

Example:

AddWeekdays("03/15/2014", 5); // returns 03/22/2014

Example:

AddWeekdays("03/15/2014", -5); // returns 03/08/2014