<?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: Age calculation (leap year) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Age-calculation-leap-year/m-p/897830#M354853</link>
    <description>&lt;P&gt;INTCK and INTNX (INTNX is what you would want) takes care of leap years.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/05/15/intck-intnx-intervals-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/05/15/intck-intnx-intervals-sas.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Oct 2023 15:16:11 GMT</pubDate>
    <dc:creator>maguiremq</dc:creator>
    <dc:date>2023-10-09T15:16:11Z</dc:date>
    <item>
      <title>Age calculation (leap year)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Age-calculation-leap-year/m-p/897824#M354849</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;I'm calclulating the age between 2 dates as&amp;nbsp;&lt;SPAN&gt; int(yrdif(datepart(D_NAISSANCE),datepart(d_2),'ACTUAL')), I'm wondering how to take into consideration the leap year (366 days)? &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you !&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 15:00:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Age-calculation-leap-year/m-p/897824#M354849</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2023-10-09T15:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Age calculation (leap year)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Age-calculation-leap-year/m-p/897830#M354853</link>
      <description>&lt;P&gt;INTCK and INTNX (INTNX is what you would want) takes care of leap years.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/05/15/intck-intnx-intervals-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/05/15/intck-intnx-intervals-sas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 15:16:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Age-calculation-leap-year/m-p/897830#M354853</guid>
      <dc:creator>maguiremq</dc:creator>
      <dc:date>2023-10-09T15:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Age calculation (leap year)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Age-calculation-leap-year/m-p/897869#M354875</link>
      <description>&lt;P&gt;Suggestion: Pick dates that you know the expected result for "age". Put those into the function and see the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't know how to put a specific data the structure is 'ddMONyyyyy'd where MON is the 3-letter abbreviation of the month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So yrdif ('02JAN2015'd, '15JUL2023'd) is what yrdif returns for a date of birth of 02JAN2015 with age evaluated on 15Jul2023.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 20:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Age-calculation-leap-year/m-p/897869#M354875</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-09T20:21:08Z</dc:date>
    </item>
  </channel>
</rss>

