We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog

Keeping the Copyright Date Current

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.

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.