Here's my code:
$date_depo = date('d-m-Y', strtotime($date_depot));
So in my excel table I have => 2 nov 16 00:00:00
and this code changes it to => 02-11-2016
But if I have 10 mai 13 00:00:00 it changes it to 01-01-1970 it means that the value is 0 or something like that, how can I change it to => 10-05-2013
Edit:
setlocale (LC_TIME, 'fr_FR.utf8','fra');
$date_depo = strftime('%Y-%m-%d', $date_depot);
Doesn't work.