Keeping the Copyright Date Current
11/5/2013 / By Kevin Smith
11/5/2013 / By Kevin Smith
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.
</p>
Simply format the {current_time}
date variable to show the current
year:
<p class="copyright">
© 2009–{current_time format='%Y'} Widgets, Inc.
</p>
Easy peasy.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.