Thought I'd share the solution ...
<CFSET year = ListGetAt(URL.test, 1)>
<CFSET month = ListGetAt(URL.test, 2)>
<CFSET day = ListGetAt(URL.test, 3)>
<CFSET hour = ListGetAt(URL.test, 4)>
<CFSET minute = ListGetAt(URL.test, 5)>
<CFSET second = ListGetAt(URL.test, 6)>
<CFSET myDate = #CreateDateTime(year, month, day, hour,
minute, second)#>
<cfoutput>#CreateODBCDateTime(mydate)#</cfoutput>
> My guess is that it's sending the whole variable as alist just to the first
> parameter, you'd need to split the values out.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 02 May 2002 17:06
> To: CF-Talk
> Subject: <CF_CreateODBCDateTime_DUH!>
>
>
> Ok,
>
> I need a second pair of eyes here.
>
> THIS WORKS ...
>
> <CFSET myDate = #CreateDateTime(2002,05,01,14,31,32)#>
> <cfoutput>#CreateODBCDateTime(mydate)#</cfoutput>
>
> WHY DOESN'T THIS WORK?
>
> where the URL value is ?test=2002,05,01,14,31,32<br>
>
> <CFSET myDate = #CreateDateTime(url.test)#>
> <cfoutput>#CreateODBCDateTime(mydate)#</cfoutput>
>
> WHAT AM I DOIGN WRONG HERE?
>
> THANKS!
>
> D-
>
>
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
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