Your error is here: <cfif (SignUpDate + #DateFormat(Now())#) GTE 30 >
You are going to want to use the dateCompare function. Or maybe the dateAdd function. Or both. <cfset j=dateCompare(dateAdd("d",30,signupdate),now())> <cfif j eq -1> Not expired <cfelseif j eq 0> Last day <cfelseif j eq 1> expired </cfif> Jerry Johnson Web Developer Dolan Media Company >>> [EMAIL PROTECTED] 01/04/05 03:11PM >>> I have a members only section that allows 30 day guest pass. When logging in, I need to check to see if user is a registered member or a registered visitor on a 30 day pass and to redirect them if 30 days has expired. What am I doing wrong? Thanks in advance. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:5:141528 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54