System.DateUtils.DateTimeInRange
Delphi
function DateTimeInRange(ADateTime: TDateTime; AStartDateTime, AEndDateTime: TDateTime; aInclusive: Boolean = True): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall DateTimeInRange(System::TDateTime ADateTime, System::TDateTime AStartDateTime, System::TDateTime AEndDateTime, bool aInclusive = true);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.DateUtils.pas System.DateUtils.hpp |
System.DateUtils | System.DateUtils |
Description
Checks whether a TDateTime value is in range.
The DateTimeInRange routine checks whether the TDateTime value ADateTime is between AStartDateTime and AEndDateTime.
If the aInclusive Boolean parameter is true, then the limits are included; if it is false, the limits are excluded. By default, aInclusive is true.
Note: The
AStartDateTimevalue should be before theAEndDateTimevalue.