As simply as it is:
<cfdirectory directory="C:\" action="LIST" name="test" filter="*.">

<cfoutput query="test">
#name#  - #LSDateFormat(DateLastModified,"MMMM DD, YYYY")#<br>
</cfoutput>

Some directories would return (as expected):
Directory1 - December 12, 2002
Directory2 - December 12, 2002
Directory3 - December 12, 2002

Then lets say the 4th Directory would error out:
Directory1 - 

Error:
The value "Tuesday, 17 December 2002 05:21:09 PM EST"
could not be converted to a date.

Why would directories 1-3 process fine and Directory 4
error out? All are using the same DateFormat function
with the DateLastModified attribute from the CFDirectory
function.






>>> [EMAIL PROTECTED] 12/23/02 08:57AM >>>
What's the error? Could you give us some examples of data that works
and
data that throws errors?

Perhaps the locale of the system is conflicting. For example you may
find
that dates such as 02/03/2002 are working but 14/03/2002 are not
because its
mixing up the day/month as month/day (taking non-US dates as example)

Taz


> Is there a dateformat issue using CFMX that was addressed in
> some update/patch, or some means??
>
> When doing a directory listing, some directories will report
> fine and format the date accordingly using the DateFormat
> function. However, there are some directories which will
> throw an error. Nothing special regarding the directory.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to