rejean
04-13-2004, 06:21 AM
Hi everyone!
A friend of mine has the following script but the new update gives her 104 instead of 2004 for the year. How could she modify her script to make it work?
Thanks in advance.
Réjean
<script language="JavaScript">
function initArray()
{
this.length = initArray.arguments.length
for (var i=0;i<this.length;i++)
this[i+1] = initArray.arguments[i]
} // end initArray.
var DOWArray = new initArray("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var MOYArray = new initArray("January", "February", "March", "April", "May", "June", "July", "August","September", "October", "November", "December");
var LastModDate = new Date(document.lastModified);
document.write(" I first published my site February 17, 2004.   <br> I last updated on");
document.write(DOWArray[(LastModDate.getDay()+1)],", ");
document.write(MOYArray[(LastModDate.getMonth()+1)]," ");
document.write(LastModDate.getDate(),", ",LastModDate.getYear());
document.write(".<P>");
</script>
</td>
</tr></body>
</html>
A friend of mine has the following script but the new update gives her 104 instead of 2004 for the year. How could she modify her script to make it work?
Thanks in advance.
Réjean
<script language="JavaScript">
function initArray()
{
this.length = initArray.arguments.length
for (var i=0;i<this.length;i++)
this[i+1] = initArray.arguments[i]
} // end initArray.
var DOWArray = new initArray("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var MOYArray = new initArray("January", "February", "March", "April", "May", "June", "July", "August","September", "October", "November", "December");
var LastModDate = new Date(document.lastModified);
document.write(" I first published my site February 17, 2004.   <br> I last updated on");
document.write(DOWArray[(LastModDate.getDay()+1)],", ");
document.write(MOYArray[(LastModDate.getMonth()+1)]," ");
document.write(LastModDate.getDate(),", ",LastModDate.getYear());
document.write(".<P>");
</script>
</td>
</tr></body>
</html>