Topic: Increment date years
Hello,
I found here on the forum this script
procedure frmFornitore_dtData_OnChange (Sender: TObject);
begin
frmFornitore.dtScadenza.date := frmFornitore.dtData.date + 30;
end;
I understand what it does, but my question is how can i change it to increment in years not in days? I know that i can do it by write 365 instead of 30, but what if i want a 10 years increment?
Thanks