Posted By

sarathannapareddy on 08/13/09


number days between dates of 2 INTCK YRDIF DATDIF ACTACT

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


How to calculate number of years and number of days between 2 dates;

 / Published in: SAS


Exploring the yrdif and datdif functions in SAS as well as INTCK function: There are several ways to calculate the number of years between two dates and out of all the methods, YRDIF function results the most accurate value.


ageinyrs = YRDIF(birthdate, enddate, 'act/act'); ag_indays = DATDIF(birthdate, enddate, 'act/act');

Read more at:

Report this snippet  

You need to login to post a comment.