Hi ,I have 2 date fields Date1 and Date2.
They are both in MYY format i.e., a single byte month and 2 byte year.
The month values are ‘1’ ‘2’ ‘3’ ‘4’ ‘5’ ‘6’ ‘7’ ‘8’ ‘9’ ‘0’ ‘-’ ‘&’ i.e., Month is alphanumeric and Oct, Nov and Dec are assigned with ‘0’, ‘-’ and ‘&’ respectively.
I have to compare if date1>date2.
The only logic that comes to my mind is regenerating 2 byte month from single byte month and assign century to year field. But this requires lot of variables in addition to the input file variables. Also lot of IF is used.
Can you help me in optimising the comparison?
How can I go about comparing this kind of dates?
pls help…