<?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: Who to make a date difference between two different date format? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Who-to-make-a-date-difference-between-two-different-date-format/m-p/313920#M68293</link>
    <description>&lt;P&gt;It looks like DEATH_DT is a SAS datetime and not a SAS date. Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Days_to_Death = (mindate-datepart(DEATH_DT));&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2016 23:33:00 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-11-23T23:33:00Z</dc:date>
    <item>
      <title>Who to make a date difference between two different date format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Who-to-make-a-date-difference-between-two-different-date-format/m-p/313905#M68284</link>
      <description>&lt;P&gt;Hello SAS world!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate difference between two dates, which are in the following formate: "12JUL2012 and&amp;nbsp;20120711".&lt;/P&gt;&lt;P&gt;I got a date difference as "-20101525", which is utterly wrong. Can someone help me with this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;--Sujith&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 22:36:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Who-to-make-a-date-difference-between-two-different-date-format/m-p/313905#M68284</guid>
      <dc:creator>Sujithpeta</dc:creator>
      <dc:date>2016-11-23T22:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Who to make a date difference between two different date format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Who-to-make-a-date-difference-between-two-different-date-format/m-p/313907#M68286</link>
      <description>&lt;P&gt;You say formats. Can you confirm that date formats are applied to both variables? Make sure it's not numeric with a numeric or datetime format.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 22:41:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Who-to-make-a-date-difference-between-two-different-date-format/m-p/313907#M68286</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-23T22:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Who to make a date difference between two different date format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Who-to-make-a-date-difference-between-two-different-date-format/m-p/313908#M68287</link>
      <description>&lt;P&gt;What SAS code got you that result?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 22:41:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Who-to-make-a-date-difference-between-two-different-date-format/m-p/313908#M68287</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-11-23T22:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Who to make a date difference between two different date format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Who-to-make-a-date-difference-between-two-different-date-format/m-p/313915#M68290</link>
      <description>&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;U&gt;mindate&lt;/U&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;U&gt; DEATH_DT &amp;nbsp;&lt;/U&gt; &amp;nbsp; &lt;U&gt;Days_to_Death&lt;/U&gt;&lt;/P&gt;&lt;P&gt;12JUL2012 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20120711 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -20101525&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data M.Death;&lt;BR /&gt;set M.Death;&lt;BR /&gt;Days_to_Death = (mindate-DEATH_DT);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 23:11:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Who-to-make-a-date-difference-between-two-different-date-format/m-p/313915#M68290</guid>
      <dc:creator>Sujithpeta</dc:creator>
      <dc:date>2016-11-23T23:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Who to make a date difference between two different date format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Who-to-make-a-date-difference-between-two-different-date-format/m-p/313920#M68293</link>
      <description>&lt;P&gt;It looks like DEATH_DT is a SAS datetime and not a SAS date. Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Days_to_Death = (mindate-datepart(DEATH_DT));&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 23:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Who-to-make-a-date-difference-between-two-different-date-format/m-p/313920#M68293</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-11-23T23:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Who to make a date difference between two different date format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Who-to-make-a-date-difference-between-two-different-date-format/m-p/313933#M68299</link>
      <description>&lt;P&gt;I suspect that DEATH_DT is actually just a number and not a date at all. &amp;nbsp;If that's true, you could try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Days_to_Death = mindate - input(put(death_dt, 8.), yymmdd8.);&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2016 00:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Who-to-make-a-date-difference-between-two-different-date-format/m-p/313933#M68299</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-11-24T00:51:11Z</dc:date>
    </item>
  </channel>
</rss>

