vulcanchic
11-25-2003, 08:46 PM
I'm using a last updated script on two different sites, but it's only working right on one site. I'm using the exact same script on both sites though. On the second site, the date changes every day, regardless of when the page was updated. Why is it doing that? Here's the script:
<script language="Javascript"><!--
var dateModified = document.lastModified;
mydate = dateModified.slice(0,10);
document.write("Last updated: " + mydate + " ");
//-->
</script>
Thanks!
<script language="Javascript"><!--
var dateModified = document.lastModified;
mydate = dateModified.slice(0,10);
document.write("Last updated: " + mydate + " ");
//-->
</script>
Thanks!