Answered
CFCALENDAR & Actionscript
Hello,
I am using the following code to refresh a page with the current date selected when a user selects a date from the calendar.
<cfparam name="thisdate" default="#now()#">
<cfcalendar name="CurrentDate"
mask="mm/dd/yyyy"
dayNames="SU,MO,TU,WE,TH,FR,SA"
style="rollOverColor:red"
width="230" height="150"
selecteddate="#DateFormat(thisdate,"mm/dd/yyyy")#"
onChange="getURL('ReserveGrid.cfm?thisdate='+CurrentDate.selectedDate)">
This works fine for returning the month and day, but it returns 2000 as the year (no matter what year I select). Any ideas as to why it is only recognizing the month and day, and not the year?
Thanks!
(CFMX 7.02, Windows 2003)
I am using the following code to refresh a page with the current date selected when a user selects a date from the calendar.
<cfparam name="thisdate" default="#now()#">
<cfcalendar name="CurrentDate"
mask="mm/dd/yyyy"
dayNames="SU,MO,TU,WE,TH,FR,SA"
style="rollOverColor:red"
width="230" height="150"
selecteddate="#DateFormat(thisdate,"mm/dd/yyyy")#"
onChange="getURL('ReserveGrid.cfm?thisdate='+CurrentDate.selectedDate)">
This works fine for returning the month and day, but it returns 2000 as the year (no matter what year I select). Any ideas as to why it is only recognizing the month and day, and not the year?
Thanks!
(CFMX 7.02, Windows 2003)
