I have an excel file. Date column is like this 29/01/21 that means dd/mm/yy.
I read file
$date2 = strtotime($row[1]);
$date = date('d-m-Y',$date2);
Its result 000000000.
When I changed Y-m-d instead of d-m-Y. Its read but when date or mount greater than 12 its result is NULL.
How can I read this data correctly?