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
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
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