Form Field Calculation: Subtracting 1 year from current date
Im working on a form where I need a date to auto populate every time the file is opened . I need it to populate the date 1 year ago.

I have used the following scripts to populate the "WED" and "UED" fields with the current date:
function dateToday() {
var d = new Date();
f = this.getField("WED");
f.value = d;
}dateToday();
So now im looking for a way to populate the "WSD" and "USD" form fields with a date 1 year prior to the current date.
Im new to this and self taught so please bear with me.
