PDA

View Full Version : How to put date in header


Andy
07-14-2005, 12:42 AM
With vBulletin version 3.04 I used phpinclude_start and defined this variable

$mydate = date("l F jS");

but now I'm told with 3.5 I have to do it in a different way.

Can someone please explain how to make this work in my header template

<font size="-2">$mydate</font>

Dream
07-14-2005, 01:17 AM
admincp -> plugin system -> add new plugin

put $mydate = date("l F jS"); in global_start hook

Andy
07-14-2005, 01:28 AM
Thanks Dream, that worked perfect. :)

Paul M
07-14-2005, 01:41 AM
FYI: There are two variables created as part of global.php running called $datenow and $timenow, which have the current date/time in your preferred format.

Andy
07-14-2005, 01:46 AM
FYI: There are two variables created as part of global.php running called $datenow and $timenow, which have the current date/time in your preferred format.

Hi Paul,

Close, $datenow uses the MM-DD-YEAR format, I prefer this format "Wednesday July 13th".

:)