dynamic current year with JavaScript


/ Published in: JavaScript
Save to your folder(s)

Often on a page footer, we want a copyright date range starting with the year the website was launched and ending the current year. Doing this dynamically means no need to update on 1/1 every year. The js snippet below uses the server date to accomplish this.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.