<?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 DATE Calculation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DATE-Calculation/m-p/388931#M93260</link>
    <description>&lt;P&gt;Good Afternoon Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for some syntax help if you can &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create an effective date which is always to be Dec 31st of the following year&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Example&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If my Creation Date is 8/18/2017 my effective date would be DEC 31 2018&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my Creation Date is 12/31/2017 my effective date woul dbe DEC 31 2018&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ect.&lt;/P&gt;&lt;P&gt;Appreciate any assistance&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2017 18:32:59 GMT</pubDate>
    <dc:creator>Bellefeuille</dc:creator>
    <dc:date>2017-08-17T18:32:59Z</dc:date>
    <item>
      <title>DATE Calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATE-Calculation/m-p/388931#M93260</link>
      <description>&lt;P&gt;Good Afternoon Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for some syntax help if you can &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create an effective date which is always to be Dec 31st of the following year&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Example&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If my Creation Date is 8/18/2017 my effective date would be DEC 31 2018&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my Creation Date is 12/31/2017 my effective date woul dbe DEC 31 2018&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ect.&lt;/P&gt;&lt;P&gt;Appreciate any assistance&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 18:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATE-Calculation/m-p/388931#M93260</guid>
      <dc:creator>Bellefeuille</dc:creator>
      <dc:date>2017-08-17T18:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: DATE Calculation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATE-Calculation/m-p/388933#M93261</link>
      <description>&lt;P&gt;The INTNX function is incredible. I suggest you read up about it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data have;
	format CreationDate EffectiveDate date.;
	CreationDate = '1jan2017'd;
	EffectiveDate = intnx('year', CreationDate, 1, 'end');
	output;
	CreationDate = '18aug2017'd;
	EffectiveDate = intnx('year', CreationDate, 1, 'end');
	output;
	CreationDate = '31dec2017'd;
	EffectiveDate = intnx('year', CreationDate, 1, 'end');
	output;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 18:44:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATE-Calculation/m-p/388933#M93261</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2017-08-17T18:44:05Z</dc:date>
    </item>
  </channel>
</rss>

