• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

dateformat within cfselect flash form

New Here ,
Jul 26, 2007 Jul 26, 2007

Copy link to clipboard

Copied

I'm needing to format smalldatetime sql field within cfselect in a flash form. How does one accomplish this?
TOPICS
Advanced techniques

Views

595

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 27, 2007 Jul 27, 2007

Copy link to clipboard

Copied

It's probably easiest to format the query prior to the cfselect generating. You can accomplish this a number of ways, but the most efficient way would be to do it in the SQL Select. How you do it depends on the DBMS that you are using.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 27, 2007 Jul 27, 2007

Copy link to clipboard

Copied

Could you provide an example? Thx!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 27, 2007 Jul 27, 2007

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 27, 2007 Jul 27, 2007

Copy link to clipboard

Copied

I got it handled a less elegant way but it works. One would think that Adove would have added something so needed in the flash form. Oh well.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jul 27, 2007 Jul 27, 2007

Copy link to clipboard

Copied

A minor comment. You don't need cfloop + cfoutput. All you need is <cfoutput query="...">

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 27, 2007 Jul 27, 2007

Copy link to clipboard

Copied

I had that at first but then the flash form wouldn't display and CF 7 got stuck holding 30% cpu.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jul 27, 2007 Jul 27, 2007

Copy link to clipboard

Copied

Weird. Works for me with MX7.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 29, 2007 Jul 29, 2007

Copy link to clipboard

Copied

LATEST
Could you not try it like this?

<cfselect name="eventday" size="1" width="150" visible="Yes" enabled="Yes" required="Yes" query="events" value="eid" display="#LSDateFormat(edate, 'DD/MM/YYYY')#" />

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation