With DateJS, you'd add e.g. six months to the current date like this:
Date.today().addMonths(6);
However, I need to add 24 months not to today's date, but to a date which a user has typed into a date field. So the today()
should in principle be replaced by something like this.getField('begin_date').value
.
The result shall be written into another data form field.
I tried hard, but couldn't make it. Can anyone help me out?