Digital Web Magazine

The web professional's online magazine of choice.

Reminder: Update your date

Nick Finck

January 4, 2006 at 12:29 PM

Now that the new year is hear, I guess it would be a good time to remind everyone to update their site's copyright statment date in your footer. Of course, if you haven't already done this you should consider using a Server Side Include (SSI) call (e.g. <!--#config timefmt="%Y" --> <!--#echo var="DATE_LOCAL" -->), dynamic calls such as a PHP call (e.g. <?php echo date("Y") ?>), or even a Smarty call (e.g. {$smarty.now|date_format:'%Y'}) like we do here on Digital Web Magazine. Happy New Year everyone.

Comments

Manasseh

January 5, 2006 at 11:10 AM

Great reminder! Thanks for the valuable information. Now I won't have to manually update the copyright everyear.

Joe

January 5, 2006 at 12:34 PM

Thanks for the reminder. Question: Does anyone have an opinion on using a date range for copyright (e.g. ©2005-2006)? I think it's smart since copyright on your work begins in the year it's written and it gives a sense of the site's longevity or lack thereof.

Pete

January 5, 2006 at 1:45 PM

Awesome reminder - just dropped by through del.icio.us. My 9-5 has been since 96 (

Douglas Clifton

January 5, 2006 at 8:12 PM

Way ahead of ya Nick, my site auto-updates the copyright string to always include the current and previous year. I suppose I could post the code if anyone is interested.

Pete Rossetti

January 7, 2006 at 7:40 AM

Or for those that like Javascript use this © Copyright Company Name 2004-<script type="text/javascript"> RightNow = new Date(); document.write(+ RightNow.getFullYear() +".") </script>

Khairudin Lee

January 18, 2006 at 8:32 PM

Ahh cheers for this lil easter egg. :)

SMC

March 27, 2006 at 12:52 PM

Hi Does anyone have a solution for calling up previous years eg 1 year ago (2005) or 5 years ago (2001) preferrably by SSI? Many thanks

Media Temple

via Ad Packs