Are you tired of having to change the copyright yearly date on your website every year? There’s an easier way to manage that instead of manually typing the date every year.

Scrolling to the bottom of a website and seeing that a website is still copyrighted 2004 shows that the business doesn’t care about their online presence too much.

In this article, we’ll show the easy steps on how to add the current year and copyright to the bottom of your website.

How to add current year to the footer in WordPress and PHP

&copy; <?php echo date("Y"); ?> Copyright.
Add copyright and current date to wordpress
Screenshot showing how to add current year and copyright to WordPress footer

This will output:

© 2023 Copyright.

How to get current year in Javascript?

Adding the current date to JavaScript based websites is fairly straightforward as well.

<script> new Date().getFullYear(); </script>

This will output:



I hope this helped you add the current year to your website. It makes it look more professional when you have the current year in the footer along with the copyright.