DateInRange function
Checks whether a date value is in a given rang.
Declaration
function DateInRange(ADate: TDate; AStartDate: TDate; AEndDate: TDate;
AInclusive: Boolean=True): BooleanDescription
DateInRange checks whether the value
ADate lies between
AStartDate and
AEndDate, and returns
True if it is.
When
AInclusive is
True (the default), then the limits are included. When
AInclusive is
False,
the limits are excluded. Only the date part of the 3 parameters is considered.Errors
The
AStartDate value must be before
AEndDate, but no check is performed.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
