View Full Version : Displaying Date in Long Form
Michael Morris
07-26-2004, 09:16 AM
Is there a way to get vbulletin to display a date in long form, like this:
Monday, July 26, 2004.
I could write a function for this, but if there's already one in the system that would be better.
Colin F
07-26-2004, 10:11 AM
Is there a way to get vbulletin to display a date in long form, like this:
Monday, July 26, 2004.
I could write a function for this, but if there's already one in the system that would be better.
Look in your
Admin CP > vBulletin Options > Date and Time Options > Format For Date
For what you want to do, you would have to insert L, F j, Y there.
Michael Morris
07-26-2004, 10:21 AM
I don't want to change the boardwide settings. I want a template to be able to call up the longform date as part of its code display.
Colin F
07-26-2004, 10:38 AM
I don't want to change the boardwide settings. I want a template to be able to call up the longform date as part of its code display.
well then you're going to have to change the vbdate() in the php file representing the place you want to change it.
vbdate() is built up like this:
vbdate($format, $timestamp = TIMENOW, $doyestoday = false, $locale = true, $adjust = true, $gmdate = false)
so you could change it to vbdate("your format", $timestamp);
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.