Returns the difference in years between two dates according to specified day count conventions; returns a person’s age.
Category: | Date and Time |
specifies a SAS date value that identifies the starting date.
specifies a SAS date value that identifies the ending date.
identifies a character constant or variable that describes how SAS calculates a date difference or a person’s age. The following character strings are valid:
specifies a 30-day month and a 360-day year in calculating the number of years. Each month is considered to have 30 days, and each year 360 days, regardless of the actual number of days in each month or year.
Alias | '360' |
Tip | If either date falls at the end of a month, it is treated as if it were the last day of a 30-day month. |
uses the actual number of days between dates in calculating the number of years. SAS calculates this value as the number of days that fall in 365-day years divided by 365 plus the number of days that fall in 366-day years divided by 366.
Alias | 'Actual' |
uses the actual number of days between dates in calculating the number of years. SAS calculates this value as the number of days divided by 360, regardless of the actual number of days in each year.
uses the actual number of days between dates in calculating the number of years. SAS calculates this value as the number of days divided by 365, regardless of the actual number of days in each year.