<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do i find  age from Date o Birth in dd/mm/yyyy format? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-do-i-find-age-from-Date-o-Birth-in-dd-mm-yyyy-format/m-p/798876#M33093</link>
    <description>&lt;P&gt;what is the second date you're comparing to?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 26 Feb 2022 17:46:34 GMT</pubDate>
    <dc:creator>tarheel13</dc:creator>
    <dc:date>2022-02-26T17:46:34Z</dc:date>
    <item>
      <title>How do i find  age from Date o Birth in dd/mm/yyyy format?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-i-find-age-from-Date-o-Birth-in-dd-mm-yyyy-format/m-p/796750#M33014</link>
      <description>&lt;P&gt;I am trying to find age using the date of birth.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 23:49:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-i-find-age-from-Date-o-Birth-in-dd-mm-yyyy-format/m-p/796750#M33014</guid>
      <dc:creator>Sharan</dc:creator>
      <dc:date>2022-02-16T23:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do i find  age from Date o Birth in dd/mm/yyyy format?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-i-find-age-from-Date-o-Birth-in-dd-mm-yyyy-format/m-p/796753#M33015</link>
      <description>&lt;P&gt;You need two dates to calculate age, the day of birth and a reference day, for example, Age as of February 1, 2022.&lt;BR /&gt;&lt;BR /&gt;YRDIF() is one method, see the second example here:&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.2/lefunctionsref/p1pmmr2dtec32an1vbsqmm3abil5.htm#n1hxxgh4x8gx82n1tdzndva45dgo" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.2/lefunctionsref/p1pmmr2dtec32an1vbsqmm3abil5.htm#n1hxxgh4x8gx82n1tdzndva45dgo&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Or an older method:&lt;BR /&gt;&lt;A href="https://www.pauldickman.com/sastips/age/" target="_blank" rel="noopener"&gt;https://www.pauldickman.com/sastips/age/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/338281"&gt;@Sharan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to find age using the date of birth.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 23:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-i-find-age-from-Date-o-Birth-in-dd-mm-yyyy-format/m-p/796753#M33015</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-16T23:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do i find  age from Date o Birth in dd/mm/yyyy format?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-i-find-age-from-Date-o-Birth-in-dd-mm-yyyy-format/m-p/797492#M33048</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;Here is an interesting paper that reviews many approaches. Select the one that suits your needs&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.pharmasug.org/proceedings/2011/CC/PharmaSUG-2011-CC20.pdf" target="_blank"&gt;Your Age In People Years: Not All Formulas Are the Same (pharmasug.org)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;And do revie this too&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://susanslaughter.files.wordpress.com/2010/08/61860_update_computingagesinsas.pdf" target="_blank"&gt;The YRDIF Function (wordpress.com)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Feb 2022 19:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-i-find-age-from-Date-o-Birth-in-dd-mm-yyyy-format/m-p/797492#M33048</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-02-20T19:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do i find  age from Date o Birth in dd/mm/yyyy format?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-i-find-age-from-Date-o-Birth-in-dd-mm-yyyy-format/m-p/798876#M33093</link>
      <description>&lt;P&gt;what is the second date you're comparing to?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 17:46:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-i-find-age-from-Date-o-Birth-in-dd-mm-yyyy-format/m-p/798876#M33093</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-02-26T17:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do i find  age from Date o Birth in dd/mm/yyyy format?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-i-find-age-from-Date-o-Birth-in-dd-mm-yyyy-format/m-p/798878#M33094</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/338281"&gt;@Sharan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to find age using the date of birth.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please take a minute and explain how you would do this pencil and paper? What are the exact steps? Once you know that, you (perhaps with our help) can create SAS code to do the same thing.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 21:06:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-i-find-age-from-Date-o-Birth-in-dd-mm-yyyy-format/m-p/798878#M33094</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-26T21:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do i find  age from Date o Birth in dd/mm/yyyy format?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-i-find-age-from-Date-o-Birth-in-dd-mm-yyyy-format/m-p/798886#M33098</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/338281"&gt;@Sharan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Further to the references I have cited above, you can use the code which gives the age in years months and days. I have taken 01/01/1960 as the date of birth. Make sure that it serves your purpose.&lt;/P&gt;
&lt;P&gt;I would like to emphasize that the references I gave above are a must read if you want a good understanding of the pros and cons of different approaches.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
  input @1 dob mmddyy10.;
  tod=today();            
   years = intck('year', dob, tod, 'c');
   months = intck('month', intnx('year', dob, years, 's'), tod, 'c');
  days = tod - intnx('month', dob, months + years*12, 's');
  put "Age is " years "Years  "  months "Months and "  Days   "Days.";
   format dob tod mmddyy10.;
datalines;
01/01/1960 
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can see this in the log for todays date (February 26,2022).&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Age is 62 Years  1 Months and 25 Days.&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Feb 2022 19:35:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-i-find-age-from-Date-o-Birth-in-dd-mm-yyyy-format/m-p/798886#M33098</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-02-26T19:35:27Z</dc:date>
    </item>
  </channel>
</rss>

