Just change that "EQ" to "LT" and you'll be set. On Sunday, November 29, 2009, [email protected] [email protected] <[email protected]> wrote: > > Hi all, > Trying to do a date compare on a file datelastmodified (retrieved through > CFDirectory). > If the file datelastmodified is older than 1 hour previous to Now, I want to > refetch the file. > > In other words, if the file is posted at 9:00 AM, if it's presently 10:05 AM, > I want to get a new file. > > Here's my attempt, but I can't get it to work right: > > DateCompare(dirname.DateLastModified, DateAdd("h", -1, Now())) EQ 0 > > Thanks! > > Mark > >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328743 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

