// Full Date Javascript
// Filename:  jsdate.js
// Written By: Randy D. Nguyen
// Date:  Tuesday, March 19, 2002
// Displays current DAY OF WEEK, MONTH, DAY OF MONTH, and YEAR

<!-- Begin
//Declare array for days of the week
var dayofweek = new Array(7);
dayofweek[0] = "Sunday";
dayofweek[1] = "Monday";
dayofweek[2] = "Tuesday";
dayofweek[3] = "Wednesday";
dayofweek[4] = "Thursday";
dayofweek[5] = "Friday";
dayofweek[6] = "Saturday";

//Declare array for months of the year
var themonth = new Array(12);
themonth[0] = "January";
themonth[1] = "February";
themonth[2] = "March";
themonth[3] = "April";
themonth[4] = "May";
themonth[5] = "June";
themonth[6] = "July";
themonth[7] = "August";
themonth[8] = "September";
themonth[9] = "October";
themonth[10] = "November";
themonth[11] = "December";

//Store current date
var time=new Date();

//Write out DAY OF WEEK, MONTH, DAY OF MONTH, and YEAR
document.write(dayofweek[time.getDay()] + ", ");
document.write(themonth[time.getMonth()] + " ");
document.write(time.getDate() + ", ");
document.write(time.getFullYear());
// End -->


