[Overview][Constants][Procedures and functions][Index] |
Checks whether a date value is in a given rang
Source position: dateutil.inc line 382
function DateInRange( |
ADate: TDate; |
AStartDate: TDate; |
AEndDate: TDate; |
AInclusive: Boolean = True |
):Boolean; |
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.
The AStartDate value must be before AEndDate, but no check is performed.
|
Checks whether a time value is in a given range |
|
|
Checks whether a date/time value is in a given range |