> try this to set your variables instead:
>
> <cfset D1 = "createODBCdate('#userYear#-#userMonth#-#userDay#')">
> <cfset D2 = "createODBCdate('#userYear#-#userMonth#-01')">
>
> I'm not entirely sure about it, but I had a similar problem a
> while back and this made the difference.
Both of these CFSETs will create a string saying "createODBCdate('...')" and
not a data string
Get rid of the quotes around the function
You can also use ParseDateTime as CF naturally stores dates as ODBCDateTime
format
Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133
"Websites for the real world"
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists