Have you considered forgoing passing that variable via the form and just
put #dateFormat(date,
"mm/dd/yyyy")# in the insert statement?
Michael Corrigan
Programmer
Endora Digital Solutions
www.endoradigital.com
630/942-5211 x-134
----- Original Message -----
From: Douglas L. Brown
To: CF-Talk
Sent: Friday, November 09, 2001 12:45 PM
Subject: date time problem
I have a form with a hidden field like below, and I keep getting an
error when tring to insert
<cfset date = Now()>
<input type="hidden" NAME="lastModified"
VALUE="#dateFormat(date,
"mm/dd/yyyy")#">
INSERT
#dateAdd( "d", "0", "#lastModified#" )#
<CF_SIGNATURE
NAME="Douglas L. Brown"
EMAIL="[EMAIL PROTECTED]"
PHONE="714.538.6611"
WEB="http://www.carnivorepc.com">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
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