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

lastModifiedDate in cfdirectory

New Here ,
Jun 25, 2006 Jun 25, 2006

Copy link to clipboard

Copied

Hi,

I'm having some issues getting the correct lastModifedDate from cfdirectory. I live in Australia, so my system is configured to display dates as DD/MM/YYYY rather than MM/DD/YYYY. When I use CF to query a directory and the day is greater than 12, cfdirectory displays the day as the year! Eg: 31/03/2003 becomes 03/03/1931. I have been using computers for a while now, but I'm fairly confident that I didn't create this file in 1931!!

If the day is less than 12, it uses the day as the month and the month as the day.

Does anyone have a fix for this bug?

Thanks in advance,

Pete
TOPICS
Advanced techniques

Views

264

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 ,
Jun 26, 2006 Jun 26, 2006

Copy link to clipboard

Copied

LATEST
Try This.
#lsdateformat(mydirectory.dateLastModified, "dd/mmm/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