Log in

View Full Version : Stupid Timestamp Question


Logikos
05-19-2005, 09:41 AM
Okay this is gonna be a stupid question, but i'm trying to do something.

I have a timestamp in the database. The Row is called 'dateline'. For me to get the timestamp to show correctly i use this in my PHP.


$var['dateline'] = vbdate($vboptions['dateformat'], $var['dateline'], 1);


And the output is the date.

How can i get the Date and The Time? So i can doing something like. Posted on $var[dateline] at $var[time].

Marco van Herwaarden
05-19-2005, 10:08 AM
You can use either:
$var['dateline'] = vbdate($vboptions['logdateformat'], $var['dateline'], 1);

Or:
$var['dateline'] = vbdate($vboptions['dateformat'], $var['dateline'], 1) . " at " . vbdate($vboptions['timeformat'], $var['dateline'], 1) ;

Logikos
05-19-2005, 10:18 AM
Thanks Worked perfect :)