devxlogo

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

Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.

See also  Five Early Architecture Decisions That Quietly Get Expensive

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.