Guys,
I'm trying to evaluate a date against now() to try and see if the date is more than 5 minutes old, I'm sure I've used this method before but for some reason I'm struggling to get it working. <cfif LOCAL.qMyQuery.DateTime LT dateadd('m', -5, now()) > Date is older than 5 minutes. <cfelse> Date is within the last 5 minutes. </cfif> However this doesn't appear to work, it always displays the 'Date is within the last 5 minutes.' Even when it's not J Any ideas? Thanks guys, Rob ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 beta - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284418 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4