i am converting 'd-m-Y' format to 'Y-m-d'
Currently, I am using this code
$dp_date = '13-12-1901';
$formated_date = date("Y-m-d",strtotime($dp_date));
but not working with dates before 14-12-1901 and works fine after this date '13-12-1901' as input.
whats the problem here? and how can i do this formatting for the dates before 1900, or 14-12-1901 to be specific?