HTML DOM lastModified Property
Example
Get the date and time the current document was last modified:
var x = document.lastModified;
Try it Yourself »
More "Try it Yourself" examples below.
Definition and Usage
The lastModified property returns the date and time the current document was last modified.
Note: This property is read-only.
Browser Support
Property | |||||
---|---|---|---|---|---|
lastModified | Yes | Yes | Yes | Yes | Yes |
Syntax
document.lastModified
Technical Details
Return Value: | A String, representing the date and time the document was last modified |
---|---|
DOM Version | Core Level 3 Document Object |
More Examples
Example
Convert the lastModified property into a Date object:
var x = new Date(document.lastModified);
Try it Yourself »
❮ Document Object