If you use the DateAdd() function you won't end up
with 9/0/200.

DateAdd("d", "-7", "9/7/2000")

You also might want to look at DateDiff()

Ric

----- Original Message -----
From: "Art Broussard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 07, 2000 11:20 AM
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.

Reply via email to