Last Date and Time when you Login

2

I put this line in the php code:

$lastlogdate=time();

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

1397562733

I wanted it to look like this:

17/04/14
    
asked by anonymous 17.04.2014 / 22:46

1 answer

4

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

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

Source: epochconverter

    
17.04.2014 / 22:49