Auto Update Copyright Year In ExpressionEngine
Posted Jan 2, 2012
In the Tutorials Category
A couple years ago, we wrote an entry on using PHP to auto update the copyright year on websites built on WordPress and other PHP websites. However, if you are building a site in ExpressionEngine, it is advised to utilize EE code when possible over PHP.
Allowing a copyright year to auto update is easy to do in ExpressionEngine thanks to the current_time variable, which still functions using PHP date variables.
Simply drop the following in your theme and you are all set.
Copyright © {current_time format="%Y"}
We wish everyone a happy and successful 2012!



