Hi ,
Need your guys advice how to compare two date ranges,
As my code snippet show below, those date can not be compare even Date1 is within the range of Date2 logically...
Any guide and insight i appreciate it alot.
Thanks
.
RANGES : date1 FOR p0001-begda,
date2 FOR p0001-endda.
date1-sign = 'I'.
date1-option = 'BT'.
date1-low = '20110101'.
date1-high = '20110808'.
APPEND date1.
date2-sign = 'I'.
date2-option = 'BT'.
date2-low = '20110101'.
date2-high = '20110808'.
APPEND date2.
IF date1 IN date2 .
WRITE:/ 'with in date range'.
SKIP 2.
ENDIF.
.