Mega Code Archive

 
Categories / JavaScript DHTML / Date Time
 

Putting a Time Stamp on a Page

<html>  <head>  <title>Time Stamper</title>  </head>  <body>  <script type="text/javascript">  update = new Date(document.lastModified);  theMonth = update.getMonth() + 1;  theDate = update.getDate();  theYear = update.getFullYear();  document.writeln("<I>Last updated:" + theMonth + "/" + theDate + "/" + theYear + "<\/I>");  </script>  </body>  </html>