Date change code

by 4 replies
5
Hey guys

What code do I install , so my copy write date, (in the footer), changes each year automatically? In wordpress.

&

where does it get placed within?

Thanx

P.S. = If you could respond with the actual code that I need to use would be awesome!
#website design #change #code #date
  • Try this.

    Google for "javascript code to change year"

    Computing[dot]net link has the perfect solution.

    But, if a visitor's machine shows year 1990 now in his system clock, then the JS code too
    shows the same.

    This is because JS runs on local browser.

    I am unable to paste the code because I am a newbie and I am not allowed to do that. Thanks.
  • You can use this script in the footer.php file

    Code:
    <script language="javascript">
    <!--
    today=new Date();
    y0=today.getFullYear();
    document.write('Copyright &copy; 2010 - '+y0+' - yoursite.com, all rights reserved.');
    //-->
    </script>
    Best regards,

    Andre Foisy
  • Excellent, thanks all.
    I just couldn't remember the code ... must of been a brain freeze or something,
    • [1] reply
    • YW just that I'M not "all" but Andre :p

Next Topics on Trending Feed