JavaScript document.lastModified Property
You are Here:
JavaScript document.lastModified Property
The document.lastModified
property returns the current date and time.
Example
HTML Online Editor
<!DOCTYPE html>
<html>
<body>
<p>document.lastModified will return the current time only.</p>
<p id="point"></p>
<script>
var x = document.getElementById("point");
x.innerHTML = document.lastModified;
</script>
</body>
</html>
Syntax
document.lastModified
Return Values
Value | Explanation |
---|---|
String | Returns the current date and time |
Reminder
Hi Developers, we almost covered 97% of JavaScript Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in JavaScript.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.