It’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)
« Belated Blog Birthday and Favorite Post Recap
Comments
Pingback: Code that Caters to Your Laziness | The Simian Downtime Analyst
Pingback: Code that Caters to Your Laziness