<?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: I need to create exact one year from today in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-create-exact-one-year-from-today/m-p/270056#M53597</link>
    <description>&lt;P&gt;Have you tried&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;test = intnx('year',today(),-1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;If yes, and it did not give you your wanted result, what was the difference?&lt;/P&gt;</description>
    <pubDate>Thu, 12 May 2016 13:43:53 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-05-12T13:43:53Z</dc:date>
    <item>
      <title>I need to create exact one year from today</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-create-exact-one-year-from-today/m-p/270051#M53592</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create an year value and it should be exact one year from today irrespective of leap year or what ever I have tried the below code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;test=intnx('month',today(),-12,'B');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it was not giving exact exact one year difference it was giving 01-May-2015 but i need 12-May-2015 ie if the job is running today it should calculate exact one year difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manesh&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 13:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-create-exact-one-year-from-today/m-p/270051#M53592</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2016-05-12T13:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: I need to create exact one year from today</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-create-exact-one-year-from-today/m-p/270056#M53597</link>
      <description>&lt;P&gt;Have you tried&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;test = intnx('year',today(),-1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;If yes, and it did not give you your wanted result, what was the difference?&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 13:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-create-exact-one-year-from-today/m-p/270056#M53597</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-05-12T13:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: I need to create exact one year from today</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-create-exact-one-year-from-today/m-p/270065#M53603</link>
      <description>&lt;P&gt;The last parameter for your intnx should be same.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You also should use year and -1 interval.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Intns('yeat', today(), -1, 's')&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 13:57:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-create-exact-one-year-from-today/m-p/270065#M53603</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-12T13:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: I need to create exact one year from today</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-create-exact-one-year-from-today/m-p/270068#M53605</link>
      <description>&lt;P&gt;Also, you may want to compare these two to see if they give you the same results for leap years:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;intnx('year', today(), -1, 'S')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;intnx('month', today(), -12, 'S')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it's possible they are equivalent, but check for a Feb 28, Feb29, and March 1 date to see what you get.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;***&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found time to test them ... they generate the same result.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 14:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-create-exact-one-year-from-today/m-p/270068#M53605</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-05-12T14:13:58Z</dc:date>
    </item>
  </channel>
</rss>

