

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to show the date and time the document was last modified with JavaScript?
To show the last modified date with JavaScript, use the lastModified property.
Example
You can try to run the following code to display the date and time the document last modified with JavaScript −
<!DOCTYPE html> <html> <body> <script> var date = document.lastModified; document.write("Last Modified: "+date); </script> </body> </html>
- Related Questions & Answers
- How to display the date and time of a document when it is last modified in JavaScript?
- How to check the Date and time of Access (last modified) of a File using Java?
- How to get file last modified time in Java?
- How to show the full URL of a document with JavaScript?
- How to show date and time on the X-axis in Matplotlib?
- How to show the number of links in a document with JavaScript?
- How to show the domain name of the server that loaded the document with JavaScript?
- How to get first and last date of the current month with JavaScript?
- Display the Asian and American Date Time with Date Object in JavaScript
- How to compare the first date and the last date from a MySQL column with date records?
- Get the date/time of the last change to a MySQL database?
- How do I get the current date and time in JavaScript?
- MySQL Query to find tables modified in the last hour?
- How to find tables modified in the last hour in Android sqlite?
- How to get current date and time in JavaScript?
Advertisements