<?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 - Round the Date Variable to Latest Day of Month? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Round-the-Date-Variable-to-Latest-Day-of-Month/m-p/289799#M59877</link>
    <description>&lt;P&gt;&amp;nbsp;I have just checked it, I need to put "0"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Want;
Set Have;
NewDate=Intnx("Month",Date,0,"End");
Format NewDate Date9.;
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you &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;</description>
    <pubDate>Fri, 05 Aug 2016 13:52:35 GMT</pubDate>
    <dc:creator>ertr</dc:creator>
    <dc:date>2016-08-05T13:52:35Z</dc:date>
    <item>
      <title>How to - Round the Date Variable to Latest Day of Month?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Round-the-Date-Variable-to-Latest-Day-of-Month/m-p/289796#M59875</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to change the first day of month to latest day of the month. I prepared a sample code as below. Is it possible to round the date variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Have;
Format Date DATE9.;
Infile Datalines Missover;
Input Date;
Datalines;
19510
19602
19693
19783
19875
19967
20058
20148
;
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4443iBA8FAA82F3BDC483/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Date.png" title="Date.png" /&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 13:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Round-the-Date-Variable-to-Latest-Day-of-Month/m-p/289796#M59875</guid>
      <dc:creator>ertr</dc:creator>
      <dc:date>2016-08-05T13:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to - Round the Date Variable to Latest Day of Month?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Round-the-Date-Variable-to-Latest-Day-of-Month/m-p/289798#M59876</link>
      <description>&lt;P&gt;INTNX function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;CODE class=" language-sas"&gt;intnx('MONTH',date,0,'END')&lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Aug 2016 13:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Round-the-Date-Variable-to-Latest-Day-of-Month/m-p/289798#M59876</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-08-05T13:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to - Round the Date Variable to Latest Day of Month?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Round-the-Date-Variable-to-Latest-Day-of-Month/m-p/289799#M59877</link>
      <description>&lt;P&gt;&amp;nbsp;I have just checked it, I need to put "0"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Want;
Set Have;
NewDate=Intnx("Month",Date,0,"End");
Format NewDate Date9.;
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you &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;</description>
      <pubDate>Fri, 05 Aug 2016 13:52:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Round-the-Date-Variable-to-Latest-Day-of-Month/m-p/289799#M59877</guid>
      <dc:creator>ertr</dc:creator>
      <dc:date>2016-08-05T13:52:35Z</dc:date>
    </item>
  </channel>
</rss>

