need ParseDateTime function? terry
On 13/07/05, Brett Payne-Rhodes <[EMAIL PROTECTED]> wrote: > Hi, > > Using CF6.1... > > Occasionally the 'dateLastModified' returned by cfdirectory is not really a > date, well not according to the dateformat() function anyway... > > ======================================================================================= > Error Occurred While Processing Request > The value "Wednesday, 13 July 2005 12:16:36 PM WST" could not be converted to > a date. > ======================================================================================= > > Without getting into the specifics of trying to parse dates, shouldn't > cfdirectory be returning a 'date' that can be used by dateformat()? *Surely* > it should be... > > The documentation says: > > If action = "list", cfdirectory returns these result columns, which you can > reference in a cfoutput tag: > > name: directory entry name. The entries "." and ".." are not returned. > size: directory entry size > type: file type: File, for a file; Dir, for a directory > dateLastModified: the date that an entry was last modified > attributes: file attributes, if applicable > > So, "the date that an entry was last modified" suggests a 'date' but it would > appear to be a string. And not a valid date string at that... > > Is it because the server is running with non-US date formats? But I would > expect CF to handle this... > > Perhaps someone can point me to a java function called something like > "getFileAttributes()" to use instead? > > > Many thanks, > > Brett > B) > > -- > Brett Payne-Rhodes > Eaglehawk Computing > t: +61 (0)8 9371-0471 > f: +61 (0)8 9371-0470 > m: +61 (0)414 371 047 > e: [EMAIL PROTECTED] > w: www.ehc.net.au > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > Aussie Macromedia Developers: http://lists.daemon.com.au/ > --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
