// JavaScript Document
/* set up arrays of day and month names */
days = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
months = new Array("January","February","March","April","May","June","July","August","September","October","November","December")
/* get today's date, then extract the components */
today = new Date()
thisDay = today.getDay()
thisDate = today.getDate()
thisMonth = today.getMonth()
thisYear = today.getFullYear()
/* write the date in words and figures */
todayDay = days[thisDay]
todayMonth = months[thisMonth]
document.write(todayDay + ", " + todayMonth +" " + thisDate + ", " + thisYear)
// JavaScript Document