1: 2: 3: 4: 5: 6: 7: 8:
var jaren, maanden: geheel; begin jaren: = YearsBetween (Date1.Date, Date2.Date); maanden: = MonthsBetween (Date1.Date, Date2.Date) - jaren * 12; showmessage (inttostr (jaren)); showmessage (inttostr (maanden)); eind;