function isItTheMillenniumYet()
{
var thisDate = new Date();
var thisYear = thisDate.getYear();
return (thisYear >= 2000);
}
// use the function to see if the new millenium
is here yet
var newMillennium = isItTheMillenniumYet();
// print the current millenium status
if (newMillennium)S
{
Response.Write("<font size=3 color=#666699 face=Geneva,
Arial, Helvetica, san-serif><b>The millennium has arrived!</b></font></p>");
}
else
{
Response.Write("You're still stuck in the 1900's...");
}
Response.Write("<br><br>");
|