How rude.. I didnt include my snippet! :P

<!----- snip --->
<CFSET Attributes.dateCurrent = DateAdd("m", 3, Now())>
<TABLE WIDTH="50%" ALIGN="center">
        <CFSET dateFirstDay = CreateDateTime(Year(Attributes.dateCurrent),
Month(Attributes.dateCurrent), 1, 0, 0, 0)>
        <CFSET dateLastDay = CreateDateTime(Year(Attributes.dateCurrent),
Month(Attributes.dateCurrent), DaysInMonth(Attributes.dateCurrent), 0, 0,
0)>
        <CFSET offset = DayofWeek(dateFirstDay)>
        <CFSET dateTmp = dateFirstDay>
        <CFLOOP FROM="1" TO="#DaysInMonth(Attributes.dateCurrent)#" INDEX="i">
                <CFIF DayOfWeek(dateTmp) EQ 1 OR i EQ 1>
                <TR>
                </CFIF>
                <CFIF i EQ 1>
                        <CFLOOP FROM="1" TO="#(offset - 1)#" INDEX="j">
                                <TD BGCOLOR="#EEEEEE" WIDTH="14%">
                                        <FONT SIZE="2">&nbsp;</FONT>
                                </TD>
                        </CFLOOP>
                </CFIF>
                <TD BGCOLOR="#AAAAAA" WIDTH="14%" HEIGHT="45" VALIGN="TOP">
                        <CFOUTPUT><FONT SIZE="1">#i#</FONT></CFOUTPUT>
                </TD>
                <CFIF i EQ DaysInMonth(Attributes.dateCurrent)>
                        <CFSET fillIn = DayOfWeek(7 - dateTmp)>
                        <CFLOOP FROM="1" TO="#fillIn#" INDEX="k">
                                <TD BGCOLOR="#EEEEEE" WIDTH="14%">
                                        <FONT SIZE="2">&nbsp;</FONT>
                                </TD>
                        </CFLOOP>
                </CFIF>
                <CFIF DayOfWeek(dateTmp) EQ 7>
                </TR>
                </CFIF>
                <CFSET dateTmp = DateAdd("d", 1, dateTmp)>
        </CFLOOP>
</TABLE>

<!----- snip --->

As proof that this was easy I just wrote all of this in about 10 minutes :)

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to