Return to Snippet

Revision: 5796
at April 4, 2008 19:19 by pufftenticle


Updated Code
&copy; **PUT YEAR HERE** <script type="text/javascript">
      var d=new Date();
      yr=d.getFullYear();
      if (yr!=2002)
      document.write("-"+yr);
    </script>

Revision: 5795
at April 4, 2008 19:17 by pufftenticle


Initial Code
&copy; 1999 <script type="text/javascript">
      var d=new Date();
      yr=d.getFullYear();
      if (yr!=2002)
      document.write("-"+yr);
    </script>

Initial URL
http://snipplr.com/view/1394/automatic-date-for-footer/

Initial Description
i found this snippet here on snipplr (see the link up above), and really liked it.  it came up with a validation error under XHTML 1.0 Strict so i changed it to what you see in the bottom.....

Initial Title
Auto Date for Footer

Initial Tags
date

Initial Language
JavaScript