This shows the date a file was created

Submitted by:Jhon Brain

Date added:17 December, 2018


Asp code example to show the date a file was created

Tags: date , file

Code Snippet:

Dim objFSO , myFile
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set myFile = objFSO.GetFile(Server.MapPath("sample.txt"))
Response.Write "File created on " & myFile.DateCreated
Set myFile = Nothing
Set objFSO = Nothing