DateUtils.WithinPastDays
From RAD Studio VCL Reference
Contents |
Delphi Information
From DateUtils.pas
function WithinPastDays(const ANow: TDateTime; const AThen: TDateTime; const ADays: Integer): Boolean;
Unit: DateUtils
Type: function
Visibility: public
C++ Information
From DateUtils.hpp
bool __fastcall WithinPastDays(System::TDateTime ANow, System::TDateTime AThen, int ADays);
Unit: DateUtils
Type: function
Description
Indicates whether two dates are within a specified number of days of each other.
Call WithinPastDays to determine whether the date specified by ANow is within ADays days of the date specified by AThen.
Note: WithinPastDays uses the DaysBetween function, which means that fractional days do not count. If ANow and AThen are two and a half days apart, calling WithinPastDays with ADays set to 2 returns True.
See Also
Code Samples