Update your website’s copyright year using javascript
Using the JavaScript getFullYear() Method you can dynamically update your copyright year using Javascript. This will save you time from editing the copyright date on your website.
<script>document.write(new Date().getFullYear())</script>
Result: