The javascript code
var MyDate = new Date(YY, MM-1, DD);
Where YY is a date year, MM-1 is a date month from 0 to 11, and DD is a date day-of-the-month,
does not work in a field's validation event. I keep getting the error message:
Date is not a constructor.
The same format of code works in a scripting object. Are there some things one can do in a scripting object with javascript that cannot be done in a field event?
I am using Adobe LiveCycle 7.1 on a Dell OptiplexGX620 running Windows XP professional.