Her er lidt at lege med:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Time</title>
<script type="text/javascript">
function startTime(){
var day = new Date()
var YY = day.getYear()
var MM = day.getMonth()
var DD = day.getDay()
var hh = day.getHours()
var mm = day.getMinutes()
var ss = day.getSeconds()
var month=new Array()
month[0]="Januar"
month[1]="Februar"
month[2]="Marts"
month[3]="April"
month[4]="Maj"
month[5]="Juni"
month[6]="Juli"
month[7]="August"
month[8]="September"
month[9]="Oktober"
month[10]="November"
month[11]="December"
h=checkTime(hh);
m=checkTime(mm);
s=checkTime(ss);
document.getElementById('txt').firstChild.nodeValue= DD + ". " + month[MM] + " " + YY + " kl. " + h + ":" + m + ":" + s;
document.getElementById('txt2').firstChild.nodeValue= DD + "/" + (MM+1) + "-" + YY + " kl. " + h + ":" + m + ":" + s;
t=setTimeout('startTime()',500)
}
function checkTime(i){
if (i<10){i="0" + i}
return i
}
window.onload=startTime;
</script>
</head>
<body>
<div id="txt" type="text" size="20"> </div>
<div id="txt2" type="text" size="20"> </div>
</body>
</html>
/psc