PDA

View Full Version : interpreting the date


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.