AddDays Function

  • Updated

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

Syntax

 

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

 

AddDays(dateTime, numDays)

 

 

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.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.