View Full Version : vbdate
AN-net
03-21-2004, 02:16 PM
can someone explain to me what this function does and how it works?
assassingod
03-21-2004, 03:02 PM
It shows the dates based on setting in the AdminCP and user preference
Example, $time is grabbed from the database. Only 2 parameters are used in this example, but that's usually what you need.:
/* without a variable */
vbdate($vboptions[timeformat],$time);
/* with a variable */
$thetime = vbdate($vboptions[timeformat],$time);
filburt1
03-21-2004, 03:04 PM
Moreover, it's used to parse dates that are stored as epocs--the format vB uses for everything--and display them in a human-readable form. In the case of vB3, it will also display them in a form readable by the user's selected language.
AN-net
03-21-2004, 04:55 PM
if i used the time(); variable to set my dates etc. can vbdate parse them?
assassingod
03-21-2004, 04:56 PM
Yes.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.