If you have DRK 3, and if you have looked at the calendar ColdFusion component, you might have noticed that the test file called calendarTest.cfm that is referred to in the documentation is missing. We will fix the problem shortly as well as make the file available from Macromedia’s website, however in the meantime, it can be downloaded from here:
http://www.markme.com/cantrell/downloads/calendar.zip
The calendar component builds a model of a calendar page given a particular month and year. It returns a two dimensional array which represent the rows and columns of a calendar so that you don’t have to worry about months having different numbers of days, starting on different days of the week, leap year, etc. All those calculations are encapsulated in the calendar component. The calendarTest.cfm page demonstrates how to use the component and how to iterate over the array that it returns to build an infinite HTML calendar. Even if you don’t have the DRK, you might want to check out the sample file to see how it works.