Here is another shot I made at it. This one is simpler, but I have yet to add my array-building code.
Final desired result: http://acelinkdev.evansville.edu/DevFiles/JavaExcel/Salon/Date1.cfm Thanks M!ke CODE: <cfset dayList = "Mon,Tue,Wed,Thu,Fri,Sat,Sun"> <cfset year = 2005> <cfset month = 7> <cfset thisMonth = createDate(year, month, 1)> <cfset thisMonthLastDate = createDate(year, month, daysInMonth(thisMonth))> <cfset datumDate = dayOfWeek(thisMonth) - 2> <html lang="en-US"> <head> <title>Untitled</title> <style type="text/css"> body, td { font-family: verdana, sans-serif; font-size: 10px; } </style> </head> <body> <table border="1" cellpadding="2" cellspacing="0" bordercolor="#c0c0c0"> <cfloop from="1" to="#datumDate#" index="thisDay"> <tr> <td> </td> <td><cfoutput>#listGetAt(dayList, thisDay)#</cfoutput></td> </tr> </cfloop> <cfloop from="1" to="#daysInMonth(thisMonth)#" index="thisDay"> <cfset thisDate = createDate(year, month, thisDay)> <tr> <td><cfoutput>#dateFormat(thisDate)#</cfoutput></td> <td><cfoutput>#dateFormat(thisDate, "ddd")#</cfoutput></td> </tr> </cfloop> <cfset datumDate = dayOfWeek(thisMonthLastDate)> <cfloop from="#datumDate#" to="7" index="thisDay"> <tr> <td> </td> <td><cfoutput>#listGetAt(dayList, thisDay)#</cfoutput></td> </tr> </cfloop> </table> </body> </html> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190006 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54