Réponse acceptée !
Salut,
Ya peut-être plus simple, mais moi je fais ceci :
function MysqltoStamp($timestamp) { $month = substr($timestamp, 5, 2); $day = substr($timestamp, 8, 2); $year = substr($timestamp, 0, 4); return mktime(0 ,0 ,0 , $month , $day , $year ); }
$date = date("d/m/Y" , MysqltoStamp($resultats['date']));
A+
|