PDA

View Full Version : Time Display


Zaiaku
11-25-2009, 02:42 PM
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
11-25-2009, 03:07 PM
See this article - vBulletin 4 Template Syntax: General (https://vborg.vbsupport.ru/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.