Get the last modified date of the current document
The Question
Can I get the last modified date of the current document using JavaScript?
Answer
The lastModified
property returns the date and time the current document was last modified.
Browser Support
IE | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes |
Example
Get the date and time the current document was last modified:
var x = document.lastModified;
The result of x will be:
11/13/2014 10:05:21
References & Resources
- N/A
Latest Post
- Dependency injection
- Directives and Pipes
- Data binding
- HTTP Get vs. Post
- Node.js is everywhere
- MongoDB root user
- Combine JavaScript and CSS
- Inline Small JavaScript and CSS
- Minify JavaScript and CSS
- Defer Parsing of JavaScript
- Prefer Async Script Loading
- Components, Bootstrap and DOM
- What is HEAD in git?
- Show the changes in Git.
- What is AngularJS 2?
- Confidence Interval for a Population Mean
- Accuracy vs. Precision
- Sampling Distribution
- Working with the Normal Distribution
- Standardized score - Z score
- Percentile
- Evaluating the Normal Distribution
- What is Nodejs? Advantages and disadvantage?
- How do I debug Nodejs applications?
- Sync directory search using fs.readdirSync