I need to use information from vBulletin database using external script. I need to decode join/last visit date. I found it in database but 06-02-2012 is in database encoded as 1338661020. How to decode it back to 06-02-2012 (in PHP) ?
I need to use information from vBulletin database using external script. I need to
Share
Alternatively, you can use DateTime (which is a more robust solution).
This also allows you to handle things like custom timezones per-user easily.
More info is available on php.net: https://www.php.net/manual/en/book.datetime.php