I have made a login script outside vb pages and I want to display the last date the user visited the forums on this log in script. I made a query to the vb databse and found out that the data on the lastvisit table isn't a normal time stamp , I guessed it's in unix timestamp so I tried converting it like so:
But it's giving me the wrong date, is the data in UNIX time stamp? or I'm just presumming wrong.
How can I convert the data using php and have a human readable date?
Code:
<?php $int = mktime(1227537906); echo date('m-d-Y', $int); ?>
How can I convert the data using php and have a human readable date?
Comment