Home Apache PHP Ubuntu MySQL Linux HTML Win CSS Perl Javascript Rants Retro
 
Print This Page
Date Posted: Sunday 29th of August 2010 | Category: PHP
Convert a unix timestamp in PHP to date
To convert a unix timestamp to a readable format using php, just copy and paste the code below.

<?php echo $date = date("F-d-Y", $timestamp); ?>

$timestamp variable is the unix timestamp. For example

<?php echo $date = date("F-d-Y", 1282983809); ?>

This would display August-28-2010
Related Links:
- Please visit our other tutorial