Date Loop
Just a reminder, you can loop over a date with <cfloop> as long as you step by the day.
Example:
<cfoutput>
<cfset previousMonth="">
<cfloop index="currentDate" from="#dateAdd('m',-3,now())#" to="#now()#" step="1">
<cfif month(currentDate) neq previousMonth>
<cfset previousMonth=month(currentDate)>
<br />
#dateformat(currentDate,'mmmm yyyy')<br />
</cfif>
#day(currentDate)#
<cfif dayofweek(currentDate) is 7>
<br />
</cfif>
</cfloop>
</cfoutput>
June 2008
16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
July 2008
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
August 2008
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
September 2008
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16




