<?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: re: Number of Days between two date with Leap Year in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/re-Number-of-Days-between-two-date-with-Leap-Year/m-p/293526#M61105</link>
    <description>&lt;P&gt;No the problem is 1993 is not a leap year, therefore there's no Feb 29th and that's an incorrect DOB, SAS date value.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Aug 2016 18:35:03 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-08-23T18:35:03Z</dc:date>
    <item>
      <title>re: Number of Days between two date with Leap Year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-Number-of-Days-between-two-date-with-Leap-Year/m-p/293496#M61088</link>
      <description>&lt;P&gt;Hi....I am trying to calculate the number of days from a clients DOB and a date. I am using INTCK Function and it seems to work until the clients DOB falls on a Leap year. Any suggestions to to fix this....Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;((intck(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Day'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,input(put(client_dob,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;8.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;),&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;yymmdd8.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;),input(put(date,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;8.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;),&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;yymmdd8.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;),&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'c'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)))&amp;nbsp;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Number_Days&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 17:31:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-Number-of-Days-between-two-date-with-Leap-Year/m-p/293496#M61088</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2016-08-23T17:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: re: Number of Days between two date with Leap Year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-Number-of-Days-between-two-date-with-Leap-Year/m-p/293501#M61091</link>
      <description>&lt;P&gt;Please post dates to indicate how the results don't match what you're expecting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, simply subtract the two dates to get the number of days.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 17:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-Number-of-Days-between-two-date-with-Leap-Year/m-p/293501#M61091</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-23T17:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: re: Number of Days between two date with Leap Year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-Number-of-Days-between-two-date-with-Leap-Year/m-p/293506#M61095</link>
      <description>&lt;P&gt;Have you checked your leap years to make sure the dates are valid?&amp;nbsp; For example, if your data set contains 19930229, you should be getting an error because there is no February 29 in the year 1993.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 17:47:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-Number-of-Days-between-two-date-with-Leap-Year/m-p/293506#M61095</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-08-23T17:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: re: Number of Days between two date with Leap Year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-Number-of-Days-between-two-date-with-Leap-Year/m-p/293523#M61103</link>
      <description>&lt;P&gt;Hi Astounding....I think you found the problem....the DOB is 19320229 and the birthdate occurring during the fiscal year from 20140401 to 20150331 is probably not a leap year.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 18:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-Number-of-Days-between-two-date-with-Leap-Year/m-p/293523#M61103</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2016-08-23T18:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: re: Number of Days between two date with Leap Year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-Number-of-Days-between-two-date-with-Leap-Year/m-p/293526#M61105</link>
      <description>&lt;P&gt;No the problem is 1993 is not a leap year, therefore there's no Feb 29th and that's an incorrect DOB, SAS date value.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 18:35:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-Number-of-Days-between-two-date-with-Leap-Year/m-p/293526#M61105</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-23T18:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: re: Number of Days between two date with Leap Year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-Number-of-Days-between-two-date-with-Leap-Year/m-p/330723#M74258</link>
      <description>&lt;P&gt;You have written C in the quatation marks. what is that meant for ?&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;((intck(&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'Day'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,input(put(client_dob,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;8.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;),&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;yymmdd8.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;),input(put(date,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;8.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;),&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;yymmdd8.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;),&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#FF0000"&gt;'c'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)))&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 07:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-Number-of-Days-between-two-date-with-Leap-Year/m-p/330723#M74258</guid>
      <dc:creator>vandhan</dc:creator>
      <dc:date>2017-02-08T07:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: re: Number of Days between two date with Leap Year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-Number-of-Days-between-two-date-with-Leap-Year/m-p/331043#M74358</link>
      <description>&lt;P&gt;Hi Vandhan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 'C' is an optional parameter which refers to the method of 'Continuous'. The alternative method, which is the default method, is 'Discrete'. These optional parameters can be used when calculating the difference between two dates and the 'Continuous' method actually calculates continuous time from&amp;nbsp;the start-of-period date specified in the second parameter of INTCK function.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 00:55:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-Number-of-Days-between-two-date-with-Leap-Year/m-p/331043#M74358</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2017-02-09T00:55:36Z</dc:date>
    </item>
  </channel>
</rss>

