<?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: What is the difference between two dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-two-dates/m-p/554156#M154144</link>
    <description>&lt;P&gt;The INTCK function only counts whole intervals. The "C" - continuous - option counts whole weeks so until you have 7 days between the start and end date the result will be 0. The "D" - discrete option counts interval boundaries. By default the WEEK boundary is Saturday to Sunday. Your dates cover Monday to Tuesday so they don't cover a week boundary, so the result is also 0.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2019 04:44:08 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-04-26T04:44:08Z</dc:date>
    <item>
      <title>What is the difference between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-two-dates/m-p/554149#M154140</link>
      <description>Diff=intck('week','31dec2018'd,'01jan2019'd,'c');&lt;BR /&gt;&lt;BR /&gt;Diff1=intck('week','31dec2018'd,'01jan2019'd,'d');&lt;BR /&gt;&lt;BR /&gt;If I use above code I am getting '0' for both variables .&lt;BR /&gt;Can you explain?</description>
      <pubDate>Fri, 26 Apr 2019 04:22:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-two-dates/m-p/554149#M154140</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-04-26T04:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-two-dates/m-p/554153#M154142</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These dates are a Monday and a Tuesday, so are in the same week.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that weeks start on Sunday -not Monday- in the crazy world of SAS week functions (might be a US thing).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use&lt;FONT face="courier new,courier"&gt; 'week.2'&lt;/FONT&gt; to start the week en Monday.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, the 'c' parameter shifts the start of the week to the first date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 04:38:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-two-dates/m-p/554153#M154142</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-04-26T04:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-two-dates/m-p/554156#M154144</link>
      <description>&lt;P&gt;The INTCK function only counts whole intervals. The "C" - continuous - option counts whole weeks so until you have 7 days between the start and end date the result will be 0. The "D" - discrete option counts interval boundaries. By default the WEEK boundary is Saturday to Sunday. Your dates cover Monday to Tuesday so they don't cover a week boundary, so the result is also 0.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 04:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-two-dates/m-p/554156#M154144</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-04-26T04:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-two-dates/m-p/554161#M154149</link>
      <description>Thanq .I understood&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Apr 2019 04:55:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-two-dates/m-p/554161#M154149</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-04-26T04:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-two-dates/m-p/554162#M154150</link>
      <description>Thanq.I understood&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Apr 2019 04:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-difference-between-two-dates/m-p/554162#M154150</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-04-26T04:55:19Z</dc:date>
    </item>
  </channel>
</rss>

