| Last Modified Time Stamp |
<%
' Set your objects here:
Set objFSO =
Server.CreateObject("Scripting.FileSystemObject")
Set objFile =
objFSO.GetFile(Server.MapPath("myPage.asp"))
dateModified = objFile.DateLastModified
%>
<html>
<body>
Then, show the stuff on your page:
This file was modified on the date and time below:<br>
You can write out the date as is:<br>
<%=dateModified%><br>
or special format it:<br>
<%=FormatDateTime(dateModified,1)%>
at <%=FormatDateTime(dateModified,3)%><br>
<%
' don't forget to kill your objects!
Set objFile = Nothing
Set objFSO = Nothing
%>
</body>
</html>