Im trying to convert my timestamp to a readable date (going to be used in a sql query).
My code:
$date1 = date("d-m-Y",Input::get('van'));
return Input::get('van')." ".$date1;
The timestamp:
1451602800000
the result
15-12-1966
When i try this application the result of that timestamp is Thu, 31 Dec
2015 23:00:00 GMT
Which is what i was expecting. What am i doing wrong that makes me get the wrong day-month year? the timestamp seems to be oke the code is the accepted answer here:
Adding:
date_default_timezone_set('UTC');
dosn't change anything