
// This script and many more are available free online at 
// The JavaScript Source!! http://javascript.internet.com
//  Author: www.cgiscript.net

// Get today's current date.
var now = new Date();
// Array list of days.
var days = new Array('So','Mo','Di','Mi','Do','Fr','Sa');
// Array list of months.
var months = new Array('Januar','Februar','M&auml;rz','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember');
// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
// Calculate four digit year.
function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
	 }
// Join it all together
today =  days[now.getDay()] + ", " + date + ". " +
         months[now.getMonth()] + " " +
         (fourdigits(now.getYear())) ;
// Print out the data.
document.write(today);


