CHECK DOMAIN NAME AVAILABILITY:
Domain Name

Domain Names

$13/year
Includes free tools »
Transfer domain

Transfers

$7.99/year
Includes 1 free year »

ASP Components

Check components at your disposal

Hosting Platforms

See Windows/Linux packages

Switch to HostBreak


Learn how to easily move your website

LastMod by ServerObjects

Get a file's last modified date/time from ASP

<html>
<head>
<title>LastMod Example Script</title>
</head>

<body>
<blockquote>
<h2 align=center>LastMod for ASP Example Script</h2>

<%
Set FileObj = Server.CreateObject ("LastMod.FileObj")
Response.Write "The Date Format is currently " & FileObj.DateFormat & "<br>"
Response.Write "The Time Format is currently " & FileObj.TimeFormat & "<br>"
Response.Write "<b>This file was last modified " & FileObj.LastModified ("d:\inetpub\scripts\lastmod.asp") & "</b><p>"

rem ***************************************************
rem * Modify how the info is formatted
rem ***************************************************
FileObj.TimeFormat = "hh:mm:ss am/pm"
FileObj.DateFormat = "ddd, mmm d yyyy"
Response.Write "The Date Format is currently " & FileObj.DateFormat & "<br>"
Response.Write "The Time Format is currently " & FileObj.TimeFormat & "<br>"
Response.Write "<b>This file was last modified " & FileObj.LastModified ("d:\inetpub\scripts\lastmod.asp") & "</b><p>"

%>

</blockquote>
</body>
</html>


More: There is no technical information for this component. Component supplied by www.serverobjects.com.

Please note: We do not provide support on components we offer. You will find links to the relevant vendor on each page where appropriate. Our licensing of components does not cover your local installation.