>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" <cf-talk@houseoffusion.com> >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:258784 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4