1 | First date is between the others. |
0 | First date is not between the others. |
FirstDate | String in date format. |
SecondDate | String in date format. |
ThirdDate | String in date format. |
Option | Whether to count a day falling on the beginning or end as being between. Defaults to BothExclusive (see More Info). |
For information about how to configure the format, see About Date and Time Commands.
% 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