excel - Changeing date type with PHP -


i need help.

here's code:

$date_depo = date('d-m-y', strtotime($date_depot)); 

so in excel table have => 2 nov 16 00:00:00
, code changes => 02-11-2016

but if have 10 mai 13 00:00:00 changes 01-01-1970 means value 0 or that, how can change => 10-05-2013

edit:

setlocale (lc_time, 'fr_fr.utf8','fra');  $date_depo = strftime('%y-%m-%d', $date_depot);    

doesn't work

thanks in advance!

$trans = array('janv' => 'january ','févr' => 'february','mars' => 'march ','avr' => 'april','mai' => 'may','juin' => 'june','juil' => 'july','août' => 'august','sept' => 'september','oct' => 'october','nov' => 'november','déc' => 'december');                 $resulat= strtr($date_depot,$trans);                 $date_depot_t = date('d-m-y', strtotime($resulat));     

had replace every month, works!


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -