I need to capture submit Date and Time in a web form. I have the following:

<script>
<!--
function formCheck(formobj){
var d = new Date();
var curr_date = d.getDate();
var curr_month = d.getMonth();
curr_month++;
var curr_year = d.getFullYear();
var curr_hour = d.getHours();
var curr_min = d.getMinutes();
if (curr_min.length == 1)
{
curr_min = "0" + curr_min;
}
thisform.SubmitDate.value=curr_month + "/" + curr_date + "/" + curr_year;
thisform.SubmitTime.value=curr_hour + ":" + curr_min;
}
-->
</script>

<form name="thisForm" action="/support-files/mailer.asp" method="post" onsubmit="return formCheck(this);">
<INPUT TYPE="HIDDEN" NAME="SubmitDate" />
<INPUT TYPE="HIDDEN" NAME="SubmitTime" />
.
.
.

This looks to me like I should get SubmitDate and SubmitTime in my form results but I don't. What am I doing wrong? Thanks.