Calculating A Past Date (1 Viewer)

jcruzAME

Registered User.
Local time
Yesterday, 18:56
Joined
Oct 5, 2011
Messages
135
All the functions I've looked up deal with having both dates and calculating a difference.

Is there way to calculate a date in the past?

For example, if you need to calculate 30, 60, 90 or even 365 days back from today.
 

pr2-eugin

Super Moderator
Local time
Today, 00:56
Joined
Nov 30, 2011
Messages
8,494
Use DateAdd function with a negative value.. Like.. DateAdd("d",-10,Date) will give you 02/07/2012
 

jcruzAME

Registered User.
Local time
Yesterday, 18:56
Joined
Oct 5, 2011
Messages
135
Awesome, thanks!
 

Users who are viewing this thread

Top Bottom