NAME
DateIsBetween — Check whether the first date comes between second and third.
SYNOPSIS
DateIsBetween FirstDate SecondDate ThirdDate ?Option?
DESCRIPTION
Return Value
1 First date is between the others.
0 First date is not between the others.
Arguments
FirstDateString in date format.
SecondDateString in date format.
ThirdDateString in date format.
OptionWhether to count a day falling on the beginning or end as being between. Defaults to BothExclusive (see More Info).
More Info
Options are:
1. BothExclusive (Second < First < Third).
2. BothInclusive (Second <= First <= Third).
3. LeftExclusive (Second < First <= Third).
4. LeftInclusive (Second <= First < Third).
5. RightExclusive (Second <= First < Third).
6. RightInclusive (Second < First <= Third).

For information about how to configure the format, see About Date and Time Commands.


For information regarding exceptions / errors, see here.
EXAMPLES
% DateIsBetween {2000-01-02} {2000-01-01} {2000-01-03}
1
% DateIsBetween {2000-01-02} {2000-01-02} {2000-01-03}
0
% DateIsBetween {2000-01-02} {2000-01-02} {2000-01-03} LeftInclusive
1
SEE ALSO
DateIsAfter, DateIsBefore, DateIsOn, DateIsOnOrAfter, DateIsOnOrBefore, DatetimeIsBetween, SetDateFormat
KEYWORDS
check, date, verification