Actually, you just need a little Dateadd()
<cfset CurrentDate=now()>
<cfset lastweek=dateadd('D',-7,now())>
<cfif DatetoCheck GTE lastweek> </cfif>
Stuart Duncan
MaracasMedia Inc.
At 10:20 AM 9/7/00 -0500, you wrote:
>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/[email protected]/
>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/[email protected]/
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.