devxlogo

Display Date and Time of File Upload

Display Date and Time of File Upload

Question:

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

Answer:

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

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist