Revision: 22451
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 13, 2010 01:35 by giak
Initial Code
// transforme une date 2007-07-31 en mardi 31 juillet 2007 function neo_date_datefr ($date){ $a_jour = array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"); $a_mois = array("","Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"); $split = preg_split('/-/', $date); $annee = $split[0]; $mois = round($split[1]); $jour = round($split[2]); $hour = substr($split[2], 3); $week = date("w", mktime(12, 0, 0, $mois, $jour, $annee)); return $datefr = $a_jour[$week] .' '. $jour .' '. $a_mois[$mois] .' '. $annee; }
Initial URL
http://www.giacomel.fr
Initial Description
Initial Title
PHP : Transform a date in french
Initial Tags
date, array
Initial Language
PHP