Trying to calculate date on which subject will turn a certain age

Accepted Solution Solved
Reply
New Contributor
Posts: 4
Accepted Solution

Trying to calculate date on which subject will turn a certain age

Hello:

I am a new member here.

I have a list of subjects with a date of birth field. I am trying to calculate the date on which each subject will turn 19 years old. If anyone has any suggestions, please let me know. Thank you!


Accepted Solutions
Solution
‎05-13-2015 03:52 PM
Super User
Posts: 11,343

Re: Trying to calculate date on which subject will turn a certain age

The function you are looking for :

In a data step:

age19 = intnx('year',dob,19,'same');

View solution in original post


All Replies
Solution
‎05-13-2015 03:52 PM
Super User
Posts: 11,343

Re: Trying to calculate date on which subject will turn a certain age

The function you are looking for :

In a data step:

age19 = intnx('year',dob,19,'same');

New Contributor
Posts: 4

Re: Trying to calculate date on which subject will turn a certain age

Thanks very much!

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 228 views
  • 0 likes
  • 2 in conversation