Question
Need help with DateFormat fromCF4.0 to CF8
I'm migrating from CF4.0 to CF8 and getting stuck with the
following error message:
20-Nov-08 11:32:53 is an invalid date or time string.
The error occurred in *:********\*******\login.cfm: line 171
169 : <CFELSE>
170 :
171 : <CFIF ParameterExists(REMOTE_ADDR) AND #CreateODBCDate("#GetUserRecord.lastlogin#")# LT #CreateODBCDate("#SetDateTimeNow#")#>
172 : <CFQUERY NAME="UpdateDateTimeIPLast" DATASOURCE=#Attributes.DATASOURCE#>
173 : UPDATE #Attributes.TABLE#
The chunck of code that I think is involved is:
<CFSET SetDateTimeNow = "#DateFormat(DateAdd('n', 0, NOW()))#
#TimeFormat(DateAdd('n', 0, NOW()), 'HH:mm:ss')#">
I could really use some help here. MANY THANKS.
20-Nov-08 11:32:53 is an invalid date or time string.
The error occurred in *:********\*******\login.cfm: line 171
169 : <CFELSE>
170 :
171 : <CFIF ParameterExists(REMOTE_ADDR) AND #CreateODBCDate("#GetUserRecord.lastlogin#")# LT #CreateODBCDate("#SetDateTimeNow#")#>
172 : <CFQUERY NAME="UpdateDateTimeIPLast" DATASOURCE=#Attributes.DATASOURCE#>
173 : UPDATE #Attributes.TABLE#
The chunck of code that I think is involved is:
<CFSET SetDateTimeNow = "#DateFormat(DateAdd('n', 0, NOW()))#
#TimeFormat(DateAdd('n', 0, NOW()), 'HH:mm:ss')#">
I could really use some help here. MANY THANKS.
