Tato123 Posted December 22, 2014 Report Share Posted December 22, 2014 Hi to All !! How is possible have only the join date and not the hours ? If i put <?php echo $userinfo->joindate;?> The result is: 2008-03-25 01:00:00 I need only 2008-03-25 Thanks Quote Link to comment Share on other sites More sharing options...
Tom Posted December 22, 2014 Report Share Posted December 22, 2014 You want to look at the php date_format() function. The documentation is a little difficult to follow now, so you essentially want to do: $justDate = date_format($userinfo->joindate, "Y-m-d"); 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.