1: 2: 3: 4: 5: 6: 7: 8:
var Jahre, Monate: ganze Zahl; anfangen Jahre: = YearsBetween (Date1.Date, Date2.Date); Monate: = MonthsBetween (Date1.Date, Date2.Date) - Jahre * 12; showmessage (inttostr (Jahre)); showmessage (inttostr (Monate)); Ende;