Well here is all the offending code <cfset datedue=#DateFormat(#due#, "m/d/yy")#> <cfset nNow=#DateFormat(Now(), "m/d/yy")#> <cfset difference=#DateDiff("D", nNow, datedue)#> <cfif difference IS NOT LT -30 AND complete IS "true"> I'm not sure how I'd use your example with this. * -----Original Message----- * From: Anthony Geoghegan [mailto:[EMAIL PROTECTED]] * Sent: Wednesday, October 11, 2000 9:40 AM * To: CF-Talk * Subject: RE: cfif * * * Hi Peter, * * Try something like this: * <cfif testdate2 LTE dateadd("d","30",testdate1) and complete * is "true"> * * * * -----Original Message----- * From: Peter Benoit [mailto:[EMAIL PROTECTED]] * Sent: 11 October 2000 14:32 * To: CF-Talk * Subject: cfif * * * I want to check if a date is not greater than 30 days old. * * I've got the datediff working, but I want to present the * table only if the * date isn't over 30 days old. So I'm doing this: <cfif * difference IS NOT GT * -30 AND complete IS "true"> * * Which obviosly doesn't work. What am I doing wrong? * * -Peter * ------------------------------------------------------------- * ----------------- * Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ * To Unsubscribe visit * http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lis ts/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.