Posted By

sarathannapareddy on 08/13/09


Tagged

number days between dates of 2 INTCK YRDIF DATDIF ACTACT


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Priestd09


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


 / Published in: SAS
 

URL: http://studysas.blogspot.com/2009/03/how-to-calculate-number-of-years-and.html

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.

Syntax:

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

Read more at: http://studysas.blogspot.com/2009/03/how-to-calculate-number-of-years-and.html

Report this snippet  

You need to login to post a comment.