If this field is placed of the form you can add following code to OnSave event handler:
var result = null;
if (crmForm.all.<birthday field>.DataValue != null)
{
result = crmForm.all.<birthday field>.DataValue;
result.setFullYear(result.getFullYear() + 2);
}
crmForm.all.<registration field>.DataValue = result;
Truth is opened the prepared mind
My blog (english)
Мой блог (русскоязычный)
