Automatic Copyright Date Update Script for PHP, ASP, and Javascript

copyrightsignIt’s a new year, and with that comes the annoying task of updating the copyright dates in the footer of all of your sites.

So this year make a resolution to never, ever do this again and just insert some code to handle the date for you. Examples in a few different languages are included below as well as a javascript version for static HTML pages:

PHP
Just copy, paste, and change the beginning year (shown as 2001)

OR

Just copy, paste, and change the beginning year (shown as 2001)

ASP
Just copy, paste, and change the beginning year (shown as 2001)

OR

Just copy, paste, and change the beginning year (shown as 2001)

OR

Just copy, paste, and change the beginning year (shown as 2001)

ASP.NET (C#)
Just copy, paste, and change the beginning year (shown as 2001)

Javascript
Just copy, paste, and change the beginning year & company name

OR

Just copy, paste, and change the beginning year (shown as 2001)

«

Comments

  1. Emil
    March 12th

    Hi,

    How can I get Copyright 1995 – 03/12/2009, full date instead of just year?

    Thanks in advance,
    Emil

  2. Pingback: Code that Caters to Your Laziness | The Simian Downtime Analyst

  3. Dom
    January 7th

    This is great! Thank you

  4. Pingback: Code that Caters to Your Laziness

Leave a Reply

Quick Contact Form

Uncheck box to submit
(please prove you're human)

RSS Feed

Enter your email address to subscribe and receive notifications of new blog content by email:

Content Calendar
Free Consultation