AddWeekdays Function

  • Updated

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

Syntax

 

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

 

AddWeekdays(dateTime, numWeekdays)

 

 

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.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.