There is no DateValue() function. The correct way to do this is probably <cfset today = CreateDate(Year(Now()), Month(Now()), Day(Now()))>
but the following also works by just lopping off the time-of-day portion of the date/time value that Now() returns. <cfset today = Int(Now())> Jim ----- Original Message ----- From: "Mark Leder" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Sunday, January 20, 2002 7:11 PM Subject: Conditional Statement based on Date > I have a form field defaulted to Today's date (as mm/dd/yyyy). The user can > change it to some future date, if they so wish. > > On my processing page, I need to run a statement which, if the date from the > form is not today's date, then > a different template is displayed. The code below I what I'm using now, but > I get an error that CF can't determine the value of todayDate = > DateValue(Now()). How do I write the correct syntax? > > --------------- > <cfset todayDate = DateValue(Now()) > > <cfif not todayDate(form.dateofsend)> > <CFLOCATION URL="e_main.cfm" ADDTOKEN="No"> > <cfelse> > .... Other logic > </cfif> > > --------------- > > Thanks in advance for your help. > > Mark > ______________________________________________________________________ Why Share? Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

