Snipplr
http://snipplr.com/language/sas/tags/DATDIF
Recent snippets posted on Snipplr.comen-usWed, 29 Jun 2016 03:20:50 GMT(SAS) How to calculate number of years and number of days between 2 dates; - sarathannapareddy
http://snipplr.com/view/18283/how-to-calculate-number-of-years-and-number-of-days-between-2-dates/
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 ]]>Thu, 13 Aug 2009 17:15:50 GMThttp://snipplr.com/view/18283/how-to-calculate-number-of-years-and-number-of-days-between-2-dates/(SAS) How To calculate Number of Days between two dates/ Calculating Age - sarathannapareddy
http://snipplr.com/view/13598/how-to-calculate-number-of-days-between-two-dates-calculating-age/
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. ]]>Mon, 30 Mar 2009 20:44:01 GMThttp://snipplr.com/view/13598/how-to-calculate-number-of-days-between-two-dates-calculating-age/