The issues are that y=input(put(dp1,10.),anydtdte10.); did not convert dp1(4/1/2021) into right date. Instead, y(1/4/2021) was converted. The question is that how does anydtdte know dp1 is mmddyy format or ddmmyy format. In the whole report that from 4/1/2021 through 14/12/2021 were treated as ddmmyy until reaching 4/13/2021, then were treated as mmddyy format. Please advose. Thank you.
... View more