<?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 SAS Tip: INTNX function with Federal Fiscal Year in SAS Tips from the Community</title>
    <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-INTNX-function-with-Federal-Fiscal-Year/m-p/442529#M139</link>
    <description>&lt;P&gt;The &lt;A href="http://go.documentation.sas.com/?cdcId=etscdc&amp;amp;cdcVersion=14.2&amp;amp;docsetId=etsug&amp;amp;docsetTarget=etsug_tsdata_sect047.htm&amp;amp;locale=en" target="_self"&gt;INTNX function&lt;/A&gt; takes a supplied date, time, or datetime value and can shift it by any specified alignment you choose. For example, if you need to know the first day of the current calendar year, you can use the following formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;intnx('YEAR', today(), 0, 'B')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But what if you need to know the beginning of an odd year format, such as the Federal Fiscal Year? The federal fiscal year starts October 1 and runs through September 30. For example, FFY2010 is October 1, 2009 through September 30, 2010. The optional shift-index portion of the interval argument can shift the interval to start at a specified subperiod starting point. For example, 'YEAR.10' specifies yearly periods shifted to start on the first of October of each calendar year and to end in September of the following year. In other words, to find the first day of the current Federal Fiscal Year, you would use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;intnx('YEAR.10', today(), 0, 'B')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;
&lt;P&gt;Thanks to Tasha Chapman&amp;nbsp;for sharing this tip on sasCommunity.org.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2018 16:26:46 GMT</pubDate>
    <dc:creator>SAS_Tipster</dc:creator>
    <dc:date>2018-03-23T16:26:46Z</dc:date>
    <item>
      <title>SAS Tip: INTNX function with Federal Fiscal Year</title>
      <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-INTNX-function-with-Federal-Fiscal-Year/m-p/442529#M139</link>
      <description>&lt;P&gt;The &lt;A href="http://go.documentation.sas.com/?cdcId=etscdc&amp;amp;cdcVersion=14.2&amp;amp;docsetId=etsug&amp;amp;docsetTarget=etsug_tsdata_sect047.htm&amp;amp;locale=en" target="_self"&gt;INTNX function&lt;/A&gt; takes a supplied date, time, or datetime value and can shift it by any specified alignment you choose. For example, if you need to know the first day of the current calendar year, you can use the following formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;intnx('YEAR', today(), 0, 'B')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But what if you need to know the beginning of an odd year format, such as the Federal Fiscal Year? The federal fiscal year starts October 1 and runs through September 30. For example, FFY2010 is October 1, 2009 through September 30, 2010. The optional shift-index portion of the interval argument can shift the interval to start at a specified subperiod starting point. For example, 'YEAR.10' specifies yearly periods shifted to start on the first of October of each calendar year and to end in September of the following year. In other words, to find the first day of the current Federal Fiscal Year, you would use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;intnx('YEAR.10', today(), 0, 'B')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;
&lt;P&gt;Thanks to Tasha Chapman&amp;nbsp;for sharing this tip on sasCommunity.org.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 16:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-INTNX-function-with-Federal-Fiscal-Year/m-p/442529#M139</guid>
      <dc:creator>SAS_Tipster</dc:creator>
      <dc:date>2018-03-23T16:26:46Z</dc:date>
    </item>
  </channel>
</rss>

