This was one of those things that I did today expecting it not to work. The problem was that I had a set of dates I needed to iterate over (from a start date to today). I thought to myself, Self, wouldnt it be nice if I could simply loop from the start date to today somehow?
And so, I decided to give it a shot and see what happened. This is the code I tried:
<cfloop from="#Example.getStartDate()#" index="date" to="#now()#"> <cfoutput> #LsDateFormat(date)# </cfoutput> </cfloop>
Much to my amazement it worked. The loop started at the start date (in this case June 15th) and looped up today, one day at a time!