HTML DOM lastModified Property (original) (raw)

Last Updated : 11 Jul, 2025

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.lastModified

**Example: In this example, we will use the **lastModified property

html `

DOM lastModified Property

GeeksForGeeks

DOM lastModified Property

Submit

`

**Output:

**Supported Browsers: The browser supported by DOM lastModified Property are listed below: