note 37149 deleted from function.date by didou

From: Date: Wed, 05 Nov 2003 08:44:25 +0000
Subject: note 37149 deleted from function.date by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-59924@lists.php.net to get a copy of this message
Note Submitter: lordsam ---- pour les francais !!! function ToCommonDate($date) { $day = substr($date, 8, 2); $month = substr($date, 5, 2); $year = substr($date, 0, 4); $daysOfWeek = array(0=>"Dimanche", 1=>"Lundi", 2=>"Mardi", 3=>"Mercredi", 4=>"Jeudi", 5=>"Vendredi", 6=>"Samedi"); $timestamp = mktime(0, 0, 0, $month, $day, $year); return $daysOfWeek[date("w", $timestamp)]." ".$day." ".date("M", $timestamp)." ".$year; }

« previous php.notes (#59924) next »