Return a Date X Number of Weeks Before or After a Given Date

Category:
Dates and Math
Type:
Snippets
Difficulty:
Beginning
Author:
Intelligent Solutions Inc.

Version Compatibility: Visual Basic 5

More information:
For example, you can use this code if you want to return the date that is one week from the current date. See the comments for a full explanation of usage.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: