Er dette rigtigt
Hej er dette rigtigt eller helt i skoven.jr fil
<!--
function writedate() {
var days=new Array(8);
days[0]="Søndag";
days[1]="Mandag";
days[2]="Tirsdag";
days[3]="Onsdag";
days[4]="Torsdag";
days[5]="Fredag";
days[6]="Lørdag";
var months=new Array(13);
months[1]="januar";
months[2]="februar";
months[3]="marts";
months[4]="april";
months[5]="maj";
months[6]="juni";
months[7]="juli";
months[8]="august";
months[9]="september";
months[10]="oktober";
months[11]="november";
months[12]="december";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var lday=days[time.getDay()];
var date=time.getDate();
var year=time.getFullYear();
document.write("<h2>" + lday + " den ");
document.write(date + ". " + lmonth + " " + year);
}
// -->
html kode
<html>
<head>
<script language="JavaScript1.2" src="date.js"></script>
<title>Ny side 2</title>
</head>
<body>
<script language="JavaScript1.2">
<!--
writedate()
// -->
</script>
</body>
</html>
/Cre8