Last Login Date and Time

Asked

Viewed 148 times

2

I put this line in the code php:

$lastlogdate=time();

To get the date and time when logging in, more when I see it looks like this:

1397562733

I wish it would stay that way:

17/04/14

1 answer

4


You need to format your date because the time() brings the date in milliseconds since 01/01/1990. Try this:

$lastlogdate=date('d/M/Y', time());

Source: epochconverter

  • Thanks Dude, You Helped Me.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.