JavaScript Code That Automatically Updates The © Year In Your Website’s Footer

In Web Business Tips by Matt ChieraLeave a Comment

We’re over two weeks into 2020 and I know some of you haven’t changed the © date in your website’s footer yet.

Here’s a JavaScript snippet that automatically updates the year. Add it to your footer so you never have to worry about it again:

<script type=”text/JavaScript”>

document.write(new Date().getFullYear());

</script>

About the Author

Matt Chiera

Twitter

Matt Chiera is the Founder and CEO of Ice Nine Online. Since forming the company in 2014, he’s helped Ice Nine Online’s small and mid-size clients generate millions of dollars in sales from digital marketing. Matt taught digital marketing strategy and tactics at the Tribeca School’s Digital Professional Institute. Matt’s book “Digital Marketers Sound Off” has been ranked as the #1 book in the Web Marketing category on Amazon.

Share this Post

Leave a Comment