I used one of the advices from Kyrene and it was great. It allowed me to create drop down menues for dates. I stored them in the db but now when the user wants to edit the date I want to display it as the default values in the form. I tried:
<cfquery datasource="centrefund" name="ed_pr">
select pr_id,pr_date....
from press_release
where pr_id='#pr_id#'
</cfquery>
<cfset d=day(#pr_date#)>
<cfset m=month(#pr_date#)>
<cfset y=year(#pr_date#)>
and then down later I tried
<select name="month">
<cfloop index="m" from=1 to=12>
<option value="#m#">#monthasstring(m)#
</cfloop>
</select>
<select name="day">
<cfloop index="d" from=1 to=31>
<option value="#d#">#d#</option>
</cfloop>
</select>
<select name="year">
<cfloop index="y" from=2000 to=2005>
<option value="#y#">#y#
</cfloop>
</select>
Thanks in advance
<cfquery datasource="centrefund" name="ed_pr">
select pr_id,pr_date....
from press_release
where pr_id='#pr_id#'
</cfquery>
<cfset d=day(#pr_date#)>
<cfset m=month(#pr_date#)>
<cfset y=year(#pr_date#)>
and then down later I tried
<select name="month">
<cfloop index="m" from=1 to=12>
<option value="#m#">#monthasstring(m)#
</cfloop>
</select>
<select name="day">
<cfloop index="d" from=1 to=31>
<option value="#d#">#d#</option>
</cfloop>
</select>
<select name="year">
<cfloop index="y" from=2000 to=2005>
<option value="#y#">#y#
</cfloop>
</select>
Thanks in advance