You could try something like this:
1. set the month variable to have leading zero
var month = "00" + (currentTime.getMonth() + 1);
2. then use the
slice()
function with a negative start index to get the last two characters
document.forms[0].date.value = month.slice(-2) + "/" + day + "/" + year;