function MonthsPassed(aFrom, anUntil: TDateTime): Integer;
begin
Result := 12 * (YearFromDate(anUntil) -
YearFromDate(aFrom)) +
MonthFromDate(anUntil) -
MonthFromDate(aFrom);
end;
Rabu, 07 November 2007
MonthsPassed
Diposting oleh Delphi Unair di 12.29
Label: Date and Time
Langganan:
Comment Feed (RSS)
|