<cfset lastweek = Now() -7>
<cfif DateTocheck GTE lastweek>Yep<cfelse>Nope</cfif>
I think this should do it...you may have to play with it a bit...
-Adrian
-----Original Message-----
From: Art Broussard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 07, 2000 8:21 AM
To: [EMAIL PROTECTED]
Subject: simple date problem major brain fart
Lets say CurrentDate is 9/7/2000 and you need to do a check to see if
DateToCheck is equal to or greater than CurrentDate - 7 days. if you
subtract 7 from the days you get 9/0/2000 which is an invalid date. Is there
an easy way to do this?
Please help, my brain is full of gas
Art
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.