function SetNameArray(item) {
 this.length = item
 return this
}

Month = new SetNameArray(12)
Month[1] = "January"
Month[2] = "February"
Month[3] = "March"
Month[4] = "April"
Month[5] = "May"
Month[6] = "June"
Month[7] = "July"
Month[8] = "August"
Month[9] = "September"
Month[10] = "October"
Month[11] = "November"
Month[12] = "December"

WeekDay = new SetNameArray(7)
WeekDay[1] = "Sunday"
WeekDay[2] = "Monday"
WeekDay[3] = "Tuesday"
WeekDay[4] = "Wednesday"
WeekDay[5] = "Thursday"
WeekDay[6] = "Friday"
WeekDay[7] = "Saturday"

function TodaysDate(theDate) {
 var theWeekDay = WeekDay[theDate.getDay() + 1]
 var theMonth = Month[theDate.getMonth() + 1]
 var theYear = theDate.getFullYear()
 //this is the line you would change for the formatting
 return theWeekDay + ", " + theMonth + " " + theDate.getDate() + ", " + theYear
}

document.write("",TodaysDate(new Date()),"")   