Get the date and time the current document was last modified:
The result of x will be:
More "Try it Yourself" examples below.
The lastModified property returns the date and time the current document was last modified.
Note: This property is read-only.
Property | |||||
---|---|---|---|---|---|
lastModified | Yes | Yes | Yes | Yes | Yes |
Return Value: | A String, representing the date and time the document was last modified |
---|---|
DOM Version | Core Level 3 Document Object |
Convert the lastModified property into a Date object:
The result of x will be: