What's wrong with Javascript's getMonth()?
Hi all,My client just alerted me of a date mistake. For some reason, getMonth() always displays the month before. Is this a bug or has it always been like this? Try the following code:
<html>
<head>
<title>test</title>
<script language="JavaScript">
function testdate()
{
var testx;
now = new Date();
testx = now.getMonth();
testy = "hello";
alert(testx);
};
</script>
</head>
<body onLoad="testdate();">
</body>
</html>