29 lines
838 B
JavaScript
29 lines
838 B
JavaScript
//********************************************************************
|
|
// Used in many pages, but not yet all pages, to collect the current date
|
|
// and write it out to the document.
|
|
//
|
|
// This will eventually get expanded out to write the entire correct citation.
|
|
//
|
|
//********************************************************************
|
|
|
|
months = new Array(12)
|
|
months[0] = "Jan";
|
|
months[1] = "Feb";
|
|
months[2] = "Mar";
|
|
months[3] = "Apr";
|
|
months[4] = "May";
|
|
months[5] = "Jun";
|
|
months[6] = "Jul";
|
|
months[7] = "Aug";
|
|
months[8] = "Sep";
|
|
months[9] = "Oct";
|
|
months[10] = "Nov";
|
|
months[11] = "Dec";
|
|
today = new Date();
|
|
month = months[today.getMonth()]
|
|
date = today.getDate()
|
|
year=today.getYear();
|
|
|
|
if (year < 2000)
|
|
year = year + 1900;
|
|
document.write (" " + date + " " + month + " " + year + ".<br>") |