I have a question about INTNX function:
data have;
date = '11Mar2016'd;
DO tenuremonth = 0 to 12;
Emth=INTNX('Month', date, tenuremonth);
Mthstart=Emth-1;
Mthend=INTNX('Month',Emth, 1)-1;
end;
format emth date mth: date9.;
run;
My question is:
I know Mthend is the last day of month. However, I don't know the difference between Mthstart and Mthend.
ex. When tenuremonth = 1Emth should be equal to 01Apr2016, and Mthend is equal to 31Mar2016.
It seems that Mthstart is the same as Mthend. But, they are different actually.
Can anyone explain it?
Appreciate.
Mthstart&Mthend, I think they are the same but actually different. Why? - user7877169