Show: Delphi C++
Display Preferences

System.DateUtils.DateInRange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DateInRange(ADate: TDate; AStartDate, AEndDate: TDate; AInclusive: Boolean = True): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall DateInRange(System::TDate ADate, System::TDate AStartDate, System::TDate AEndDate, 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 TDate value is in range.

The DateInRange routine checks whether the TDate value ADate is between AStartDate and AEndDate.

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 AStartDate value should be before the AEndDate value.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance