ASPDateLastModified Property Last Updated : 10 May, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report The ASP DateLastModified Property is used to get the date and time when the particular file or folder was last modified or update on the system.Syntax:For file Object:FileObject.DateLastModified For folder Object:FolderObject.DateLastModifiedExample-1: Below code demonstrates the ASP File.DateLastModified Property. ASP <% dim gfg,f set gfg=Server.CreateObject("Scripting.FileSystemObject") set f=gfg.GetFile("c:\test.txt") Response.Write("File was last modified on: ") Response.Write(f.DateLastModified) set f=nothing set gfg=nothing %> Output:File last modified on: 1/10/2020 10:01:19 AMExample-2: Below code demonstrates the ASP Folder.DateLastModified Property. ASP <% dim gfg,fo set gfg=Server.CreateObject("Scripting.FileSystemObject") set fo=gfg.GetFolder("d:\GFG") Response.Write("Folder last modified on: ") Response.Write(fo.DateLastModified) set fo=nothing set gfg=nothing %> Output:Folder last modified on: 1/10/2020 10:01:19 AM Comment More infoAdvertise with us Next Article File setLastModified() method in Java with Examples M manaschhabra2 Follow Improve Article Tags : Web Tech ASP-Properties ASP-Basics Similar Reads ASP DateLastAccessed Property The ASP DateLastAccessed Property is used to get the date and time when the particular file or folder is last access on the system. Syntax: For file Object:FileObject.DateLastAccessedFor folder Object:FolderObject.DateLastAccessed Example-1: Below code demonstrates the ASP FileObjectDateLastAccessed 1 min read ASP Expires Property The ASP Expires Property is used for setting the duration of time for the page will be expired before it catches on v browser. It is the same page returned by the user before it expires, the cached version is displayed. Syntax: response.Expires[=number] Parameter Values: It contains a numeric value 1 min read ASP ExpiresAbsolute Property The ASP ExpiresAbsolute Property is used for setting the date and time at which a page cached on a browser expires. If the same page is returned by the user before that date and time, the cached version is displayed. Important Note: If time is not set, the page expires at midnight of that day. If a 1 min read File setLastModified() method in Java with Examples The setLastModified() method is a part of File class.The function sets the last modified time of the file or directory. The function sets the last modified value of the file in milliseconds.Function Signature:  public boolean setLastModified(long time) Function Syntax:  file.setLastModified(time) 3 min read File setLastModified() method in Java with Examples The setLastModified() method is a part of File class.The function sets the last modified time of the file or directory. The function sets the last modified value of the file in milliseconds.Function Signature:  public boolean setLastModified(long time) Function Syntax:  file.setLastModified(time) 3 min read HTML DOM lastModified Property The DOM lastModified property in HTML is used to return the date and time of the current document that was last modified. This property is read-only. This property returns a string that contains the date and time when the document was last modified. Syntax:document.lastModifiedExample: In this examp 2 min read Like