ASP Display File/Page Creation Date & Time

 

This script will display the exact date and time of when a file/page was created.

 

Example

This page was created on the: 14/06/2009 16:42:24  

 

 

Script Source

<%
dim fs, f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile(Server.MapPath("asp_created.asp"))
Response.Write("This page was created on the: " & f.DateCreated)
set f=nothing
set fs=nothing
%>

 

Please let me know if this script was helpful to you.

[rating]