Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: JScript and date in FileSystemObject


Message #1 by Teng Fong SEAK <tfseak@f...> on Fri, 26 Jul 2002 17:49:19 +0200
I have the following code:

//---------------------------
objFSO = Server.CreateObject("Scripting.FileSystemObject"); 
f1 = objFSO.GetFile("c:\\autoexec.bat"); 
aDate = f1.DateLastModified;
//---------------------------

It seems to me that aDate is not a JScript (ECMA Script) object because
typeof(aDate) gives "date" instead of "Object".  Maybe it's a VB object??

My question is: how can I use methods like getFullYear() on aDate?

SEAK Teng-Fong
FuturMaster
Tel : +33 (0) 1.46.08.05.96
Fax : +33 (0) 1.46.08.03.88

  Return to Index