PDA

View Full Version : Dateline - how do i convert it to a date() func ?


iiNet
03-15-2002, 03:00 AM
ok i have been looking around for help on this, but havent found much apart from bits of code like this


$datestr1 = substr($latest_array["dateline"],0,10);
$datetime = substr($latest_array["dateline"],11,8);


how do i convert from the vbulletin dateline field, to a date/time ?

Freddie Bingham
03-15-2002, 04:54 AM
inside of a vbulletin file you just use

vbdate($dateformat, dateline);

or outside

date('m-d-Y', dateline);

iiNet
03-15-2002, 06:34 AM
cheers

Admin
03-15-2002, 11:35 AM
iiNet, please go to this (http://www.vbulletin.com/members/vbulletin.org.php) page and enter your username, to show you are licensed. (you will need to use your customer number and password to access that page)
Thank you.