Here is the complete code for the "Today is...." Date Java Script. To use on your web page, copy and paste this code into the html of the body of the document:
<Script Language="JavaScript">
<!-- hide from old browsers
function GetDay(intDay){
var DayArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday")
return DayArray[intDay]
}
function GetMonth(intMonth){
var MonthArray = new Array
("January", "February", "March",
"April", "May", "June",
"July", "August", "September",
"October", "November", "December")
return MonthArray[intMonth]
}
function getDateStrWithDOW(){
var today = new Date()
var year = today.getYear()
if(year<1000) year+=1900
var todayStr = GetDay(today.getDay()) + ", "
todayStr += GetMonth(today.getMonth()) + " " + today.getDate()
todayStr += ", " + year
return todayStr
}
//-->
</Script>
Copy and Paste this code into the html of the document where you want the date to appear:
<Script Language="JavaScript">
<!-- hide from old browsers document.write(getDateStrWithDOW())
//-->
</Script>
For those of you with only a little JavaScript experience please note that spaces and layout of the code does matter and that this script will not work if even one minor change is made. Legal Stuff: We do not warrant this script nor are we responsible for any damage it may do to your computer system. We also do not support this script in any way and will not respond to eMail requests for support.
You may download this script here:
Date Script.zip