<?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 intnx function in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/intnx-function/m-p/556045#M9754</link>
    <description>&lt;P&gt;I'm trying to increment a date time that is formatted 19FEB2019:00:00:00.000, using the intnx function by 10 days, but&lt;/P&gt;&lt;P&gt;Using this code:&lt;/P&gt;&lt;P&gt;INTNX('dtday', t1.CLCL_RECD_DT,10)&lt;/P&gt;&lt;P&gt;is returning&amp;nbsp; 1867017600&lt;/P&gt;&lt;P&gt;and i'm not entirely sure what to do with that, is that 10 days after in seconds? Can I convert it?&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2019 18:49:46 GMT</pubDate>
    <dc:creator>Schmageggy</dc:creator>
    <dc:date>2019-05-03T18:49:46Z</dc:date>
    <item>
      <title>intnx function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/intnx-function/m-p/556045#M9754</link>
      <description>&lt;P&gt;I'm trying to increment a date time that is formatted 19FEB2019:00:00:00.000, using the intnx function by 10 days, but&lt;/P&gt;&lt;P&gt;Using this code:&lt;/P&gt;&lt;P&gt;INTNX('dtday', t1.CLCL_RECD_DT,10)&lt;/P&gt;&lt;P&gt;is returning&amp;nbsp; 1867017600&lt;/P&gt;&lt;P&gt;and i'm not entirely sure what to do with that, is that 10 days after in seconds? Can I convert it?&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 18:49:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/intnx-function/m-p/556045#M9754</guid>
      <dc:creator>Schmageggy</dc:creator>
      <dc:date>2019-05-03T18:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/intnx-function/m-p/556048#M9756</link>
      <description>&lt;P&gt;You can apply format=datetime20. to your result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes it is 10 days after in seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you could use a datepart function if you want to extract date value from datetime value. Not sure what you want to do though&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 18:59:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/intnx-function/m-p/556048#M9756</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-05-03T18:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/intnx-function/m-p/556056#M9757</link>
      <description>&lt;P&gt;That is what you asked for.&amp;nbsp; Attach a datetime format, like DATETIME19.,&amp;nbsp; to the variable and it will be displayed in a more human readable way.&lt;/P&gt;
&lt;PRE&gt;108   data _null_;
109   old='19FEB2019:00:00:00.000'dt;
110   new=intnx('dtday',old,10);
111   put old= old comma19. old datetime19.;
112   put new= new comma19. new datetime19.;
113   run;

old=1866153600       1,866,153,600 19FEB2019:00:00:00
new=1867017600       1,867,017,600 01MAR2019:00:00:00
&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 May 2019 19:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/intnx-function/m-p/556056#M9757</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-03T19:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/intnx-function/m-p/556163#M9774</link>
      <description>both of these solutions are very helpful and I appreciate, really the first&lt;BR /&gt;one is all I needed to use in a between filter. thank you though will use&lt;BR /&gt;it for the output&lt;BR /&gt;</description>
      <pubDate>Sat, 04 May 2019 10:58:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/intnx-function/m-p/556163#M9774</guid>
      <dc:creator>Schmageggy</dc:creator>
      <dc:date>2019-05-04T10:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: intnx function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/intnx-function/m-p/556194#M9776</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/272798"&gt;@Schmageggy&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;both of these solutions are very helpful and I appreciate, really the first&lt;BR /&gt;one is all I needed to use in a between filter. thank you though will use&lt;BR /&gt;it for the output&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Right. There is no need to attach the format to use the value in code.&amp;nbsp; The formats just make the values easier for humans to read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1867017600 and '01MAR2019:00:00:00'dt represent the same underlying numeric value.&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2019 16:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/intnx-function/m-p/556194#M9776</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-04T16:21:08Z</dc:date>
    </item>
  </channel>
</rss>

