Keeping the Copyright Date Current

by: Kevin Smith on: 11/5/2013

Here’s a simple one: How do you set up a site’s copyright notice so that it’s always up to date? With a dynamic publishing system like ExpressionEngine, it would be silly to manually update that copyright date at the start of every new year.

Instead of this:

<p class="copyright">
    © 2009–2013 Widgets, Inc.

Simply format the {current_time} date variable to show the current year:

<p class="copyright">
    © 2009–{current_time format='%Y'} Widgets, Inc.

Easy peasy.

.(JavaScript must be enabled to view this email address) or share your feedback on this entry with @ellislab on Twitter.

ExpressionEngine News

#eecms, #events, #releases