Log in

View Full Version : Print current year in footer?


RedTurtle
04-06-2013, 06:46 PM
Is there any way to use the php date function to print out the current year in a template?

I would like to always show what the current year is in a template (footer) on my board and am wondering the best way to do this.

Thank you!

kh99
04-06-2013, 09:07 PM
This is cheating a bit, but it works. Use this code in the footer template:

<vb:if condition="$now = TIMENOW"></vb:if>
The year is {vb:date $now, "Y"}<br />

RedTurtle
04-06-2013, 09:27 PM
Kevin, thank you so much.

You're always so willing to help out -- really do appreciate it! :)