<?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 get first day and last day of month FORMAT AS:  1APR2017 00:00:00 AND 30APR2017 23:59:59 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351752#M81906</link>
    <description />
    <pubDate>Thu, 20 Apr 2017 15:41:45 GMT</pubDate>
    <dc:creator>JHE</dc:creator>
    <dc:date>2017-04-20T15:41:45Z</dc:date>
    <item>
      <title>how to get first day and last day of month : 1APR2017 00:00:00 AND 30APR2017 23:59:59</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351750#M81902</link>
      <description />
      <pubDate>Thu, 20 Apr 2017 15:38:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351750#M81902</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2017-04-20T15:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to get first day and last day of month : 1APR2017 00:00:00 AND 30APR2017 23:59:59</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351751#M81903</link>
      <description>Intnx</description>
      <pubDate>Thu, 20 Apr 2017 15:41:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351751#M81903</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-04-20T15:41:40Z</dc:date>
    </item>
    <item>
      <title>get first day and last day of month FORMAT AS:  1APR2017 00:00:00 AND 30APR2017 23:59:59</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351752#M81906</link>
      <description />
      <pubDate>Thu, 20 Apr 2017 15:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351752#M81906</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2017-04-20T15:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: get first day and last day of month FORMAT AS:  1APR2017 00:00:00 AND 30APR2017 23:59:59</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351756#M81907</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Get it from what? From a datetime value, you could use the intnx function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data _null_;
    dt = '03APR2017:01:04:34'dt;
    fd = intnx('dtmonth', dt, 0, 'B');
    ld  = intnx('dtmonth', dt, 0, 'E');
    put dt datetime. fd datetime. ld datetime.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;PRE&gt;03APR17:01:04:3401APR17:00:00:0030APR17:23:59:59&lt;/PRE&gt;
&lt;P&gt;Or for the current datetime:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
    dt = datetime();
    fd = intnx('dtmonth', dt, 0, 'B');
    ld  = intnx('dtmonth', dt, 0, 'E');
    put dt datetime. fd datetime. ld datetime.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;See also: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/INTNX-and-INTCK-Function-Examples/ta-p/475168" target="_self"&gt;INTNX and INTCK Function Examples&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 16:08:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351756#M81907</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2018-12-04T16:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to get first day and last day of month : 1APR2017 00:00:00 AND 30APR2017 23:59:59</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351758#M81908</link>
      <description>&lt;P&gt;Maybe elaborate on your questions, post example test data in the form of a datastep, with what the output should look like. &amp;nbsp;I am guessing:&lt;/P&gt;
&lt;PRE&gt;data want;
  start="01APR2017:00:00:00"dt;
  end=input(cats(put(intnx('month',datepart(start),'e'),date9.),":23:59:59"),datetime.);
  format start end datetime.;
run;&lt;/PRE&gt;
&lt;P&gt;However with nothing to work with and no information...&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 15:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351758#M81908</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-20T15:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: get first day and last day of month FORMAT AS: 1APR2017 00:00:00 AND 30APR2017 23:59:59</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351775#M81911</link>
      <description>If dt=today(), this would not working , dt would be dynamic variable .&lt;BR /&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;dt = '03APR2017:01:04:34'dt;&lt;BR /&gt;fd = intnx('dtmonth', dt, 0, 'B');&lt;BR /&gt;ld = intnx('dtmonth', dt, 0, 'E');&lt;BR /&gt;put dt datetime. fd datetime. ld datetime.;&lt;BR /&gt;run;</description>
      <pubDate>Thu, 20 Apr 2017 16:13:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351775#M81911</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2017-04-20T16:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: get first day and last day of month FORMAT AS: 1APR2017 00:00:00 AND 30APR2017 23:59:59</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351778#M81913</link>
      <description>&lt;P&gt;Today() gives you a date, so you'd need to change the "dtmonth" to month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;datetime() will give you the current datetime value.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 16:16:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351778#M81913</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-04-20T16:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to get first day and last day of month : 1APR2017 00:00:00 AND 30APR2017 23:59:59</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351781#M81914</link>
      <description>&lt;P&gt;Thank you, let me try this way .&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 16:21:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351781#M81914</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2017-04-20T16:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: get first day and last day of month FORMAT AS: 1APR2017 00:00:00 AND 30APR2017 23:59:59</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351840#M81936</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/128890"&gt;@JHE&lt;/a&gt; wrote:&lt;BR /&gt;If dt=today(), this would not working , dt would be dynamic variable .&lt;BR /&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;dt = '03APR2017:01:04:34'dt;&lt;BR /&gt;fd = intnx('dtmonth', dt, 0, 'B');&lt;BR /&gt;ld = intnx('dtmonth', dt, 0, 'E');&lt;BR /&gt;put dt datetime. fd datetime. ld datetime.;&lt;BR /&gt;run;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In the future please make something like this your first post, not just a subject line with no content. When you post only a vague subject &amp;nbsp;it's a processing of first trying to figure out your question before it can be answered, essentially playing 20 questions, which can be very annoying.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 18:24:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-first-day-and-last-day-of-month-1APR2017-00-00-00-AND/m-p/351840#M81936</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-20T18:24:41Z</dc:date>
    </item>
  </channel>
</rss>

