Today, I came across a situation where I needed to show only the current year.
I wanted to show the current year in the copyright text, say for example as “CopyRight © 2012 All Rights Reserved”. I didnt wanted to change this year manually each time,
So below is what I had used, hope it helps you too.
<?php echo date(“Y”); ?>