IE Javascript-enter date

I just spent 2 hrs trying to figure out why I keep getting an IE error, “Object doesn’t support this property or method” on the following line called from a buttond = new Date();

My goal is to put a date 25 years from now in a field through Javascript. Works fine with @Adjust, but the page refresh is unacceptable.

Can do it just fine manually

document.forms[0].LesDeclassDate.value=“1/23/2037”

Tried every conceivable way of getting a JS object with today’s date, but no joy.

TIA for your help

Subject: Solution

Web Button does not seem to like constructors like new Date().

Put all the code in a function in JS Header and called the function from the button.

Subject: Searching Google for your error

It looks like IE doesn’t implement Now() try getTime() instead.