MrXander Posted July 16, 2007 Share Posted July 16, 2007 ...I think... I am currently making a users area on my website. Currently, I am taking the time they registered with pruely - time(); - It then shows how long the user has been signed up... question is, how can I show what was the date they signed up? Thanks Quote Link to comment Share on other sites More sharing options...
per1os Posted July 16, 2007 Share Posted July 16, 2007 www.php.net/date Use the date function to convert the unix timestamp into a readable format. Quote Link to comment Share on other sites More sharing options...
lococobra Posted July 16, 2007 Share Posted July 16, 2007 Use date with the optional $timestamp string date ( string $format [, int $timestamp] ) So for date of sign up... something like. <?php echo date("F j, Y", $signupTime); ?> Quote Link to comment Share on other sites More sharing options...
MrXander Posted July 16, 2007 Author Share Posted July 16, 2007 Use date with the optional $timestamp string date ( string $format [, int $timestamp] ) So for date of sign up... something like. <?php echo date("F j, Y", $signupTime); ?> Thanks for that, worked perfect!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.