<?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: DateTime in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DateTime/m-p/594191#M170663</link>
    <description>&lt;P&gt;The INTNX function has a modifier, which if you set it to 'S' ought to give you the answer you want.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p10v3sa3i4kfxfn1sovhi5xzxh8n.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p10v3sa3i4kfxfn1sovhi5xzxh8n.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Oct 2019 18:37:19 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-10-04T18:37:19Z</dc:date>
    <item>
      <title>DateTime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DateTime/m-p/594190#M170662</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get the exact datetime 3 weeks from now. However, the intnx function will always return the time 00:00:000. Any idea on this issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example, thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data example;&lt;BR /&gt;a=intnx('dtweek',datetime(),-3);&lt;BR /&gt;a1=put(a,datetime22.3);&lt;BR /&gt;b=datetime();&lt;BR /&gt;b1=put(b,datetime22.3);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 18:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DateTime/m-p/594190#M170662</guid>
      <dc:creator>liyongkai800</dc:creator>
      <dc:date>2019-10-04T18:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DateTime/m-p/594191#M170663</link>
      <description>&lt;P&gt;The INTNX function has a modifier, which if you set it to 'S' ought to give you the answer you want.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p10v3sa3i4kfxfn1sovhi5xzxh8n.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p10v3sa3i4kfxfn1sovhi5xzxh8n.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 18:37:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DateTime/m-p/594191#M170663</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-04T18:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DateTime/m-p/594199#M170664</link>
      <description>Yes, adding 'same' to the function fix the problem.&lt;BR /&gt;Thanks.&lt;BR /&gt;Here is the revision.&lt;BR /&gt;&lt;BR /&gt;data example;&lt;BR /&gt;a=intnx('dtweek',datetime(),-3,'same');&lt;BR /&gt;a1=put(a,datetime22.3);&lt;BR /&gt;b=datetime();&lt;BR /&gt;b1=put(b,datetime22.3);&lt;BR /&gt;run;</description>
      <pubDate>Fri, 04 Oct 2019 18:47:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DateTime/m-p/594199#M170664</guid>
      <dc:creator>liyongkai800</dc:creator>
      <dc:date>2019-10-04T18:47:29Z</dc:date>
    </item>
  </channel>
</rss>

