<?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 to find the last day of the month in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-last-day-of-the-month/m-p/733800#M228650</link>
    <description>&lt;P&gt;thanks it worked&lt;/P&gt;</description>
    <pubDate>Wed, 14 Apr 2021 15:24:59 GMT</pubDate>
    <dc:creator>SASuserlot</dc:creator>
    <dc:date>2021-04-14T15:24:59Z</dc:date>
    <item>
      <title>How to find the last day of the month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-last-day-of-the-month/m-p/733782#M228642</link>
      <description>&lt;P&gt;I have the dates like 2018-01,&amp;nbsp; 2014-02, 1996-08, 2012-06, I would like to find the last day of that month (like is 31, 30 , or 28). I believe it also need to include if any leap years are there. Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 15:01:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-last-day-of-the-month/m-p/733782#M228642</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-04-14T15:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the last day of the month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-last-day-of-the-month/m-p/733796#M228646</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;endMonth = intnx('month', dateVariable, 0, 'e');
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Use INTNX and the alignment parameter, E, which will align a date to the end of the month.&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/350312"&gt;@SASuserlot&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have the dates like 2018-01,&amp;nbsp; 2014-02, 1996-08, 2012-06, I would like to find the last day of that month (like is 31, 30 , or 28). I believe it also need to include if any leap years are there. Thanks in advance&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 15:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-last-day-of-the-month/m-p/733796#M228646</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-04-14T15:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the last day of the month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-last-day-of-the-month/m-p/733797#M228647</link>
      <description>&lt;P&gt;Are these character strings, or numeric dates formatted to appear as 2018-01?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The INTNX function makes it easy to determine the last day of the month, if you have numeric dates in a variable which I have creatively named VARIABLENAME. The 'e' tells INTNX to find the last day of the month contained in VARIABLENAME.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;last_day_of_month=intnx('month',variablename,0,'e');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 15:20:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-last-day-of-the-month/m-p/733797#M228647</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-14T15:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the last day of the month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-last-day-of-the-month/m-p/733800#M228650</link>
      <description>&lt;P&gt;thanks it worked&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 15:24:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-last-day-of-the-month/m-p/733800#M228650</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-04-14T15:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the last day of the month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-last-day-of-the-month/m-p/733801#M228651</link>
      <description>thanks it worked</description>
      <pubDate>Wed, 14 Apr 2021 15:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-last-day-of-the-month/m-p/733801#M228651</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-04-14T15:25:14Z</dc:date>
    </item>
  </channel>
</rss>

