Not to rub salt into the wound, but the documentation does say:
Number - Number of units of datepart to add to date (positive, to get
dates in the future; negative, to get dates in the past)
Sorry <g>
-----Original Message-----
From: Dwayne Cole [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 7:45 PM
To: CF-Talk
Subject: RE: DateSubtract Like DateAdd?
WOW Kinda of embarrasing. Thanks!
---------- Original Message ----------------------------------
From: "Barney Boisvert" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Wed, 15 Oct 2003 16:39:26 -0700
>just make the interval negative. dateAdd("d", -14, now())
> -----Original Message-----
> From: Dwayne Cole [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 15, 2003 4:33 PM
> To: CF-Talk
> Subject: DateSubtract Like DateAdd?
>
>
> How about a dateSubtract function? Does anyone know it there is a
function
>similar to the dateAdd Function that instead adding specified number of
days
>or months it actually subtracts a specified number of days or months.
I
>checked cflib.org but I could not find anything.
>
> Dwayne Cole, MS in MIS, MBA
> Florida A&M University
> Certified Advanced ColdFusion Developer
> 850-591-0212
>
>
>
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- DateSubtract Like DateAdd? Dwayne Cole
- Re: DateSubtract Like DateAdd? Jeff Garza
- RE: DateSubtract Like DateAdd? Barney Boisvert
- RE: DateSubtract Like DateAdd? Dwayne Cole
- RE: DateSubtract Like DateAdd? Barney Boisvert
- Philip Arnold