I'ts cos the f1.DateLastModified is no JS date (as you already noted)
So in order to be able to use the JSdate object we must convert the date
string to the JS date object.
the same would work on a string or number containing a valid date
var objDate = new Date('12/20/2002')
now objDate will be an JSdate object
see the refrence :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/ht
ml/js56jsobjdate.asp
grz, johannes
----- Original Message -----
From: <tfseak@f...>
To: "javascript" <javascript@p...>
Sent: Wednesday, July 31, 2002 13:01
Subject: [javascript] Re: JScript and date in FileSystemObject
> >Do this:
> >
> >var aDate = new Date(f1.DateLastModified)
>
> I don't know why this is so, but it works. Thanks !
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
> -
>
>
-