ColdFusion Calendar - How can I find day from days in month? <p>Here's my code. I got it from a tutorial online.</p> <pre><code>&lt;CFPARAM NAME = "month" DEFAULT = "#DatePart('m', Now())#" /&gt; &lt;CFPARAM NAME = "year" DEFAULT = "#DatePart('yyyy', Now())#" /&gt; &lt;CFPARAM NAME = "currentday" DEFAULT = "#DatePart('d', Now())#" /&gt; &lt;CFPARAM NAME = "startmonth" DEFAULT = "#DatePart('m', Now())#" /&gt; &lt;CFPARAM NAME = "startyear" DEFAULT = "#DatePart('yyyy', Now())#" /&gt; &lt;cfset ThisMonthYear = CreateDate(year, month, '1') /&gt; &lt;cfset Days = DaysInMonth(ThisMonthYear) /&gt; &lt;cfset LastMonthYear = DateAdd('m', -1, ThisMonthYear) /&gt; &lt;cfset LastMonth = DatePart('m', LastMonthYear) /&gt; &lt;cfset LastYear = DatePart('yyyy', LastMonthYear) /&gt; &lt;cfset NextMonthYear = DateAdd('m', 1, ThisMonthYear) /&gt; &lt;cfset NextMonth = DatePart('m', NextMonthYear) /&gt; &lt;cfset NextYear = DatePart('yyyy', NextMonthYear) /&gt; </code></pre> <p>and here is my output code.</p> <pre><code>&lt;a href="calendar_day.cfm?month=#month#&amp;day=#THE_DAY#&amp;year=#year#"&gt; </code></pre> <p>I'm using this for a visible calendar, and want to be able to select the day from all days in the month. Is there any way to determine the day of the month when clicking on the day in the monthly calendar view?</p>