Hi ,
I have a scenario where I have to fetch the dates in 1/1/1900 format and insert it to a new database as 1900-01-01. The issue i face is my date before 1970 gets reset to 01-01-1970.
I tried as strftime("%Y-%m-%d", strtotime(''1-1-1900)).
I also tried with mktime but same.
There is a safestrtotime() in the strtotime function page in php.net but that gives me for date 01-01-1900 the date as 14-12-1901.
PHP 5.1+
OS : Ubuntu
Thanks in advance for the pointers and suggestions, I remain
With regards,
Harish