Adding to a selcted date with java
Hi,
I found this code in a previous old post. Can anyone help as this does not seem to be working properly: Im using this code : I need it to add days to a selected date in field "date1"
var s1 = this.getField("Date1").valueAsString;
if (s1="") event.value = "";
else {
var d1 = util.scand("dddd dd/mm/yyyy", s1);
d1.setDate(d1.getDate()+1);
event.value = util.printd("dddd dd/mm/yyyy", d1);
}
This is not pulling from field Date1 though, it is using the current day as input. Can anyone see what ive done wrong?

