![]() |
VB's time functions
Hi,
I am developing a custom page and I want to display the time when a thread was created. The creation time is available in the field "dateline" from table "thread". I could very easily read the time & display it, but I want to format it nicely, the way VB is doing it. Time formatted by VB may look like this: "Yesterday at 3:44 pm." What VB functions do I need to use to properly format the time ? Regards, Razvan M. |
Take a look at vbdate()
|
I did something like this:
Code:
$story_date = vbdate($vbulletin->options['dateformat'], $date_line, true) ; |
All times are GMT. The time now is 04:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|