PHP-Code:
<?
$month[1] = "Januar";
$month[2] = "Februar";
$month[3] = "März";
$month[4] = "April";
$month[5] = "Mai";
$month[6] = "Juni";
$month[7] = "Juli";
$month[8] = "August";
$month[9] = "September";
$month[10] = "Oktober";
$month[11] = "November";
$month[12] = "Dezember";
$num_monat = date("m");
$test = substr($num_monat,0,1);
if ($test == "0") {
$num = substr($num_monat,1,1);
$num_monat = $num;
}
$jahr = date( "Y");
$n = date( "d");
$monat = $month[$num_monat];
print "$n. $monat $jahr";
?>
Kommentar