computing the difference between Nov 1, 2013 and Nov 30, 2013 in SAS to equal 1 month
Posted on 2013-06-20
I have the following macro in SAS to compute the difference betwen two dates. The problem I am having is I am getting 0 for the difference between Nov 1, 2013 and Nov 30, 2013.
I would like to get 1 for 1 month.
I am using the following macro. Can someone tell me how to modify the macro to give me 1 .
- (day(&date) < day(&birth))))