Returns a date to which a specified time interval has been added.
|
---|
DateAdd(interval, number, date) |
Arguments
- interval
Required. String expression that is the interval you want to add. See Settings section for values.
- number
Required. Numeric expression that is the number of interval you want to add. The numeric expression can either be positive, for dates in the future, or negative, for dates in the past.
- date
Required. Variant or literal representing the date to which interval is added.
Settings
The interval argument can have the following values:
Setting
|
Description
|
---|
yyyy | Year |
q | Quarter |
m | Month |
y | Day of year |
d | Day |
w | Weekday |
ww | Week of year |
h | Hour |
n | Minute |
s | Second |
Remarks
Requirements
See Also