View Full Version : How to display today's date in the footer?
pokusek
04-28-2013, 10:47 PM
Currently there is only time displayed. How to add the date?
Thanks.
RedTurtle
04-30-2013, 02:48 AM
I display the current year in my footer using the following code:
<vb:if condition="$now = TIMENOW"></vb:if>{vb:date $now, "Y"}
where the "Y" represents the date. You can configure this using the regular PHP date options here: http://php.net/manual/en/function.date.php
If you just want a simple date, in US form (4/29/13), you could do:
<vb:if condition="$now = TIMENOW"></vb:if>{vb:date $now, "n/d/y"}
There may be a cleaner way to do this but this works. Maybe some pros on here can suggest a nicer way?
Amaury
04-30-2013, 04:15 AM
Edit the phrase all_times_are_gmt_x_time_now_is_y and change it to:
<span class="date">{3}, <span class="time">{2}</span> GMT {1}
pokusek
04-30-2013, 09:02 AM
Perfect, thank you guys!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.