PDA

View Full Version : Time Display


Zaiaku
25 Nov 2009, 15:42
I have list page on my site that just list updated threads per certain forums. From another script I got {vb:date {vb:raw thread.dateline}} which gives me a very wierd time and too detail display Wed, 25 Nov 2009 03:14:32 +0000

Is there a way I can have it like the threadlist to where it says Today, Yesterday, 1 week ago?

or

Can I have it display just Wed, 25 Nov 2009 03:14?

Lynne
25 Nov 2009, 16:07
See this article - vBulletin 4 Template Syntax: General (http://www.vbulletin.org/forum/showthread.php?t=221560) :
date {vb:date timestamp[, format]} Formats a UNIX timestamp using the default date format for the active language. A format may also be explicitly specified. Timezone will be corrected for the viewing user.Maybe something like:
{vb:date {vb:raw dateline}, {vb:raw dateformat}}Take a look through the vb template (search vb:date) and you will see examples of it's use.