此文件最后被修改的时间是?

代码:

<!DOCTYPE html>

<html>

<body>

 

<%

Set fs = Server.CreateObject("Scripting.FileSystemObject")

Set rs = fs.GetFile(Server.MapPath("demo_lastmodified.asp"))

modified = rs.DateLastModified

%>

This file was last modified on: <%response.write(modified)

Set rs = Nothing

Set fs = Nothing

%>

 

</body>

</html>

结果:

This file was last modified on: 1/15/2013 11:01:02 AM

相关文章