Try this..
<cfscript>
Attributes.StartDate = "30/10/2001" ;
Attributes.EndDate = "31/12/2001";
for ( x = Attributes.StartDate ; x lte Attributes.EndDate ; x =
dateadd("d",1,x) ) {
writeoutput(x&"<br>");
}
</cfscript>
Craig.
-----Original Message-----
From: Aidan Whitehall [mailto:[EMAIL PROTECTED]]
Sent: 12 November 2001 10:40
To: CF-Talk
Subject: Looping through dates using CFSCRIPT
Can anyone give me a rough idea how you'd write this loop so it can be put
inside a CFSCRIPT block?
<CFLOOP FROM="#Attributes.StartDate#" TO="#Attributes.EndDate#"
INDEX="Date">
Some stuff here...
</CFLOOP>
Thanks
--
Aidan Whitehall <[EMAIL PROTECTED]>
Macromedia ColdFusion Developer
Fairbanks Environmental +44 (0)1695 51775
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
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