Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

subtract 21 days from Today's date

Status
Not open for further replies.

CHTHOMAS

Programmer
Jun 16, 1999
106
0
0
AE
Visit site
Hi,

How to subtract 21 days from Today's date? I tried something like DateDiff("d",Date(),21), but getting unexpected numbers.

Regards,

Charley
 
How about :=
Code:
Dim DteVal as Date

DteVal = (Date()- 21)

Steady ... [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top