This seemed to do the trick as well.


<cfset startdate="1/10/2004">
<cfset enddate="4/10/2004">


<cfloop condition="startdate LTE enddate">
Date is <cfoutput>#startdate#</cfoutput>.<br>
<cfset startdate = dateAdd("d",1,"#startdate#")>
</cfloop>


Ahh, so many solutions to the same problem.. Thanks for the effort guys!


Jeff

-----Original Message-----
From: John Beynon [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 11:33 AM
To: CF-Talk
Subject: Re: Looping over Dates - Revisited..

infact this works for me;

<cfset startdate= "06/01/2004">
<cfset enddate = "08/06/2004">

<cfloop from="#startdate#" to="#enddate#" index="i">
<cfoutput>
#dateformat(i, "mm/dd/yyyy")#<br />
</cfoutput>
</cfloop>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to