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