Answered
Hi,
I have date field, "EndDate", and want to display on other field with adding 60 days.
Below code doesn't work.
Could someone tell me what is the problem?
Thanks, Gombear
var cDate = this.getField("EndDate");
var nDate = Date2Num(cDate, "MM/DD/YYYY") + 60;
var cDate = Num2Date(nDate, "MM/DD/YYYY");
event.value = cDate.value;
In case if someone need it.
var cDate = this.getField("EndDate").value;
var nDate = util.scand("mm/dd/yyyy", cDate);
nDate.setDate(nDate.getDate() + 60);
event.value = util.printd("mm/dd/yyyy", nDate);