Skip to main content
Participant
June 26, 2006
Question

lastModifiedDate in cfdirectory

  • June 26, 2006
  • 1 reply
  • 296 views
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
This topic has been closed for replies.

1 reply

Participating Frequently
June 26, 2006
Try This.
#lsdateformat(mydirectory.dateLastModified, "dd/mmm/yyyy")#