Actually, do not try that. It will not work. BRAIN FART!!
If you output to the screen <cfoutput> #aMyUrls[3][i]#" </cfoutput> What do you get? ----- Original Message ----- From: "Doug Brown" <[EMAIL PROTECTED]> To: "CF-Talk" <[email protected]> Sent: Wednesday, November 01, 2006 5:56 PM Subject: Re: *.dateLastModified -- could not convert to a date > Ok just for the hell of it... > > > <cfset MyDateLastModified="#LSDateFormat(aMyUrls[3][i])#"> > > > ----- Original Message ----- > From: "Ioannis Papanikolaou" <[EMAIL PROTECTED]> > To: "CF-Talk" <[email protected]> > Sent: Wednesday, November 01, 2006 4:04 PM > Subject: Re: *.dateLastModified -- could not convert to a date > > >> >try using this. You do not need to use # signs for your variables. Also >> >it >>>works better to use LTE instead. >>> >>> >>><cfif MyRecordCount IS NOT 0 and DateCompare(MyDateLastModified, >>>DateAdd("n", -15, Now())) LTE 0> >>> >>> >>> >>> >>> >>>----- Original Message ----- >>>From: "Ioannis Papanikolaou" <[EMAIL PROTECTED]> >>>To: "CF-Talk" <[email protected]> >>>Sent: Wednesday, November 01, 2006 3:06 PM >>>Subject: *.dateLastModified -- could not convert to a date >>> >>> >>>> >> Hello again, >> I have tried your solution and I ve tried this one as well: >> >> <cfset MyRecordCount="#aMyUrls[3][i]#"> >> <cfset MyDateLastModified="#aMyUrls[3][i]#"> >> >> <cfif MyRecordCount.RecordCount IS NOT 0 and >> DateCompare(MyDateLastModified.dateLastModified, DateAdd("n", -15, >> Now())) >> LTE 0> >> >> both of them giving the bellow error on the debugger: >> >> "You have attempted to dereference a scalar variable of type class >> java.lang.String as a structure with members. >> the error occured on line 47:... >> 47 : <cfif MyRecordCount.RecordCount IS NOT 0 and >> DateCompare(MyDateLastModified.dateLastModified, DateAdd("n", -15, >> Now())) >> LTE 0>" >> >> any ideas more than welcome. >> Thanx >> Ioannis >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258795 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

