hedbanger
07-24-2002, 05:08 AM
my script is getting the wrong month. it should be july. what am i doing wrong? thanks.
<script language="JavaScript">
now = new Date();
month = now.getMonth();
date = now.getDate();
year = now.getYear();
document.write("<font face='arial' size='1' color='#999999'><b>");
document.write("LAST MODIFIED ON ");
document.write("</b></font>");
document.write("<font face='arial' size='1' color='#999999'><b>");
document.write(month + "/" + date + "/" + year);
document.write("</b></font>");
</script>
<script language="JavaScript">
now = new Date();
month = now.getMonth();
date = now.getDate();
year = now.getYear();
document.write("<font face='arial' size='1' color='#999999'><b>");
document.write("LAST MODIFIED ON ");
document.write("</b></font>");
document.write("<font face='arial' size='1' color='#999999'><b>");
document.write(month + "/" + date + "/" + year);
document.write("</b></font>");
</script>