YearsBetween
Coldpeer
YearsBetween
Moduł: DateUtils
program FooApp;
{$APPTYPE CONSOLE}
uses
SysUtils, DateUtils;
var
A, B : TDateTime;
Result : Integer;
begin
A := Now;
B := EncodeDate(2006, 06, 10);
Result := YearsBetween(A, B);
Writeln('Różnica lat: ' + IntToStr(Result));
Readln;
end.
Zobacz też: