I'm trying to do something incredibly simple - convert a timestamp to a string in php with the date() function.
Code is as follows:
$test = date('d/m/y','1407974400000');
echo $test;
I expect the answer to be 14/8/14.
If I check on http://www.epochconverter.com/ that also gives this answer.
Yet the output produced from the above PHP is
07/12/86
I'm pretty sure I'm doing something completely stupid here - any able to help?
Thanks,
Chris