DateAdd
The DateAdd function performs date calculations by adding or
subtracting time periods to the specified date. The parameters indicate
the unit of time and number of units to add or subtract to the date.
If the number of units is negatve than a subtraction occurs, if the number
is positive, an addition occurs.
Dim dDate
dDate = DateAdd("d", 1, Now())
| Unit |
Meaning |
| d |
Day |
| m |
Month |
| yyyy |
Year |
| q |
Quarter |
| w |
Weekday |
| ww |
Week of Year |
| h |
Hour |
| n |
Minute |
| s |
Second |
|
 |

|