J'affiche une colonne avec une date.
J'ai trouvé ceci
<?php
if (setlocale(LC_TIME, 'fr_FR') == '') {
setlocale(LC_TIME, 'FRA'); //correction problème pour windows
$format_jour = '%#d';
} else {
$format_jour = '%e';
}
echo strftime("%a $format_jour %h %Y",strtotime($liste_day['date_trade']));
?>
Cela fonctionne très bien excepté pour les mois avec accents ou j'ai un ? pour l'accent aïgu.Le head de ma page est le suivant.
<!doctype html>
<html lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
Merci d'avance pour votre aide.Bonne journée.