Indicates whether two date/time values are within a specified number of years of each other.
function WithinPastYears(const ANow: TDateTime; const AThen: TDateTime; const AYears: Integer): Boolean;
Boolean WithinPastYears(const TDateTime ANow, const TDateTime AThen, const int AYears);
DateUtils
Call WithinPastYears to determine whether the date specified by ANow is within AYears years of the date specified by AThen.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|