The Keeper
04-01-2002, 10:34 AM
If you pull a date value from the vB database, how do you convert it into day and time text for display?
Admin
04-01-2002, 10:41 AM
Use the date() function, like this:
$formattedDate = date("FORMAT", $row['dateline']);
Or, if you are inside vBulletin just use vbdate() instead of date(), so the time will match the user's timezone.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.