OK, this is slightly vague and not really a question (I guess I just want
confirmation), but bear with me...


When you CFLOOP from one ColdFusion date to another and output the INDEX,
you get a numeric value. Also, if you create a structure and name it's keys
as ColdFusion date objects, when you loop over the collection, again you get
numeric values for the ITEM.

It looks as though those numeric values are the difference in days between
now and 1st Jan 1900. Is that right?

But, if you are looping over your collection using Date as the ITEM and do
this:

<CFIF StructKeyExists(variables.Dates, DateDiff("d", CreateDate(1900, 1, 1),
variables.Date))>
   <CFSET variables.Data = StructFind(variables.Dates, DateDiff("d",
CreateDate(1900, 1, 1), variables.Date))>
</CFIF>

all the dates are off by two days. You have to alter if to CreateDate(1899,
12, 30) for it to work.

I guess it *is* a Sunday.... *sigh*


-- 
Aidan Whitehall <[EMAIL PROTECTED]>
Macromedia ColdFusion Developer
Fairbanks Environmental +44 (0)1695 51775
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to