actual date + 1 year

I have two date fields in the same table, date1 and date2, when I enter date1 need to automatically load date2 with 1 year more

yo can do it In ajax event for date1.

{date2} = date(“Y-m-d”, strtotime(date(“Y-m-d”, {date1}) . " + 1 year"));

thanks!!!