It would really depend on the DBMS that you are using. The code example below
is for SQL Server. Also, it would be helpful to know what query you are
running and what fields you're using in the CFSelect.
<cfquery name="MyQuery" datasource="#MyDS#">
SELECT CONVERT(varchar,MyDateField,107) AS MyDate
FROM MyTable
</cfquery>
...
<cfselect query="MyQuery" ... display="MyDate">
Matrosity - 27 Jul 2007 18:56 GMT
I got it handled a less elegant way but it works:
<cfformgroup type="HORIZONTAL" label="Choose an event:">
<cfselect name="eventday" size="1" width="150" visible="Yes" enabled="Yes"
required="Yes">
<cfloop query="events">
<cfoutput><option value = "#eid#">#dateformat(edate,
"long")#</option></cfoutput>
</cfloop>
</cfselect>
</cfformgroup>
cf_dev2 - 27 Jul 2007 19:33 GMT
A minor comment. You don't need cfloop + cfoutput. All you need is <cfoutput query="...">
Matrosity - 27 Jul 2007 19:37 GMT
I had that at first but then the flash form wouldn't display and CF 7 got stuck holding 30% cpu.
cf_dev2 - 27 Jul 2007 20:05 GMT
Weird. Works for me with MX7.
<cfformgroup type="HORIZONTAL" label="Choose an event:">
<cfselect name="eventday" size="1" width="150" visible="Yes" enabled="Yes"
required="Yes">
<cfoutput query="events">
<option value = "#eid#">#dateformat(edate, "long")#</option>
</cfoutput>
</cfselect>
</cfformgroup>