Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #344366

    How can I get the current year to automatically display in the copyright area?

    Thanks.

    #344388

    Hey Micheal0424!

    Add this where you want the year to appear:

    <script>document.write(new Date().getFullYear())</script>

    E.g

    Copyright © <script>document.write(new Date().getFullYear());</script>

    Best regards,
    Arvish

    #344425

    Worked perfectly, thanks!!

    #344435

    It’s great that this can be dropped straight into the footer field. Is there a way to adjust that to pass it a start year, then show just the start year if it matches the current year, but a range after that?

    e.g.
    – pass it 2013 as the start year and it shows Copyright © 2013 – 2014
    – pass it 2014 and you get Copyright © 2014

    #344449

    This will work, just change the 2013 to the year you want.

    Copyright © 2013 – <script>document.write(new Date().getFullYear());</script>

    #344451

    Thanks, but I believe that will always show one or the other. I probably wasn’t clear. I was hoping it might be possible in say 2014 to have it display Copyright © 2014, then in 2015 have it automatically update to Copyright © 2014 – 2015. Most people have hangovers on 1st January and don’t want to be updating a copyright notice so it would be lovely if it took care of itself ;-)

    • This reply was modified 10 years ago by Sandie.
    #344461

    Hey!

    Glad this could help guys.

    Best regards,
    Arvish

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Copyright’ is closed to new replies.