Determine Page Update Date by Brad Jones | JavaScriptSource

Determine Page Update Date by Brad Jones

Brad Jones Mar 19, 2012

Abstract

Automatically display the date when the page was last updated. This super simple JavaScript call will give you that date.

Description

Automatically display the date when the page was last updated. This super simple JavaScript call will give you that date.

Code Snippet

<html> <header> <title>My test page </title> </header>  <body> <h1>Determining the last updated Date:</h1> <h2>********************</h2>  Last Modified: <script language="JavaScript"> document.write(document.lastModified); </script>    <h2>********************</h2>  </body> </html>

Download

Download

Leave a Response

(3 comments)

THANK YOU! I was looking for an easy code that I could add to a website on the WISH LIST page. It is for www.shelterministries.org on the page for the Christmas Bureau. We wanted to add a "Wish List" page - but I needed to have the list show when it was last updated. This was perfect! Thank You!!!! Blessings -

Renee Jul 22, 2014

Is it also possible to give the date in European form: day:month:year and without the time?

P.J. van Grondelle Nov 8, 2012

thanks for the script. It helps me a lot in my project. God Bless!

karen Jun 21, 2012