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

Sort CFGrid on Date Field

New Here ,
Mar 04, 2010 Mar 04, 2010

Hi,

Does anyone know if its possible to sort a CFGrid on a date field (as opposed to the Grid seeing the date as a string).

I know the docs say that adding sort=yes to the grid does a simple text sort but surely there is a way to sort on a date also?

Any help much appreciated.

Thanks,

Orla

653
Translate
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
Mar 04, 2010 Mar 04, 2010

Please read this

http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt149.htm

it wil help u

Translate
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 ,
Mar 05, 2010 Mar 05, 2010
LATEST

I think my issue was I was using the DateFormat function on the date before it was used in the datagrid. I'm guessing this function returns a string or something instead of a date object as removing this allowed date sorting.

Translate
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