Edit This Code:
<!DOCTYPE html>
<html>
<body>

<p>This document was last modified <span id="demo"></span>.</p>

<script>
document.getElementById("demo").innerHTML = document.lastModified;
</script>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy