Keeping the Copyright Date Current

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:

<class="copyright">
    &
copy2009&ndash;2013 WidgetsInc.
</
p

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

<class="copyright">
    &
copy2009&ndash;{current_time format='%Y'} WidgetsInc.
</
p

Easy peasy.

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