<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original:  Andy Angrick/Mike Barone -->
<!-- Web Site:  http://www.cgiscript.net/datetoday.htm -->
<!-- Begin

// Get today's current date.

    var now = new Date();
    hours = now.getHours();
    minutes = now.getMinutes();
    secs = now.getSeconds();
    if (hours >= 12) {apm = "pm";}
    if ((hours < 11) && (minutes < 59) && (secs < 59)) {apm = "am";}
    if (hours > 12) {hours = hours - 12;}
    if (minutes < 10) {minutes = "0" + minutes;}
    time = hours + ":" + minutes + " " + apm;
	
// Array list of days.
    var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
		
// Array list of months.
    var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
	
// 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()] + ", " +
             months[now.getMonth()] + " " +
             date + ", " +
             (fourdigits(now.getYear())) ;

// Print out the data.
    document.write(time + " " + today + ".");

//  End -->