I am converting timestamp to a date. When I convert 2242425600 into date it is reversing date to past. My code is
echo date("m/d/Y",'2242425600');
It is giving me ’12/16/1904′ which is a wrong date . I have checked this time stamp in http://www.onlineconversion.com/unix_time.htm. It is giving correct date.
I don’t understand why the date function is giving wrong date in my code.
You need to use the Date/Time object when working with dates that are larger than the 2030s
http://php.net/manual/en/book.datetime.php
http://www.php.net/manual/en/datetime.construct.php
From the manual