Remove the quotes. Now() is a function not a literal. Same goes for session.xtime.
If you are really in love with the quotes, then you could do this: "#now()#" But I don't know why you would want that. :) ~Brad -----Original Message----- From: Stephens, Larry V [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 11:08 AM To: CF-Talk Subject: This should be so simple... I want to do a time comparison to see a certain amount of time has passed. Just to test this to see what value I get back I am using <cfparam name="SESSION.xTime" default=Now()> <cfoutput>#DateDiff("m", "Now()", "SESSION.xTime")#</cfoutput> (intending to load the page, wait a few minutes then do a reload) And the error I get is The value of the parameter 2, which is currently "Now()", must be a class java.util.Date value. So how should I be writing the code? Larry V. Stephens Indiana University Office of Risk Management [EMAIL PROTECTED] 812-855-9758 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259777 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

