note 62493 deleted from function.date by derick
| From: | derick@php.net | Date: | Sun, 11 Jun 2006 11:44:02 +0000 |
| Subject: | note 62493 deleted from function.date by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-114254@lists.php.net to get a copy of this message | ||
Note Submitter: Roland dot Koch at knoxpuzzles dot com
----
A "hauruck" method for displaying dates in other languages if the method mentioned below
by Andy doesn't work.
<?php
$Tage = array(Sonntag, Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag); // change days of
week to desired language beginning on Sunday
$day = $Tage[date("w")];
$Monate = array(Januar, Februar, März, April, Mai, Juni, Juli, August, September, Oktober,
November, Dezember); // change month to desired language
$month = $Monate[date("n")-1];
$today = $day . ", " . date ("j") . ". " . $month . " " .
date ("Y"); // format time here
echo $today;
?>