Display Date and Time of File Upload


How can I display the date and time a file was uploaded to my Web server using ASP?


If you can access the file from an ASP page, you can obtain information about the file, including Date Created:

    Dim fs, f, s, strFile    strFile = "YourFileNamehere"    Set fs = CreateObject("Scripting.FileSystemObject")    Set f = fs.GetFile(strFile)    s = "Created: " & f.DateCreated    Response.write s

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: