Jump to content

Recommended Posts

Posted

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

Posted

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");

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...