<?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: How can we calculate difference in days of two dates in teradara? Note- we cannot use intck function in teradata in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-can-we-calculate-difference-in-days-of-two-dates-in-teradara/m-p/150888#M2574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can subtract dates in Teradata to get # days difference.&amp;nbsp; If the data are timestamps, you might need to cast as date before subtracting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Dec 2014 18:45:31 GMT</pubDate>
    <dc:creator>DBailey</dc:creator>
    <dc:date>2014-12-15T18:45:31Z</dc:date>
    <item>
      <title>How can we calculate difference in days of two dates in teradara? Note- we cannot use intck function in teradata</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-can-we-calculate-difference-in-days-of-two-dates-in-teradara/m-p/150887#M2573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can we calculate difference in days of two dates in teradara? Note- we cannot use intck function in teradata&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 17:35:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-can-we-calculate-difference-in-days-of-two-dates-in-teradara/m-p/150887#M2573</guid>
      <dc:creator>venkatnaveen</dc:creator>
      <dc:date>2014-12-15T17:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can we calculate difference in days of two dates in teradara? Note- we cannot use intck function in teradata</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-can-we-calculate-difference-in-days-of-two-dates-in-teradara/m-p/150888#M2574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can subtract dates in Teradata to get # days difference.&amp;nbsp; If the data are timestamps, you might need to cast as date before subtracting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 18:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-can-we-calculate-difference-in-days-of-two-dates-in-teradara/m-p/150888#M2574</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2014-12-15T18:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can we calculate difference in days of two dates in teradara? Note- we cannot use intck function in teradata</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-can-we-calculate-difference-in-days-of-two-dates-in-teradara/m-p/150889#M2575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably better off asking in a teradata forum? &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 21:13:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-can-we-calculate-difference-in-days-of-two-dates-in-teradara/m-p/150889#M2575</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-15T21:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can we calculate difference in days of two dates in teradara? Note- we cannot use intck function in teradata</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-can-we-calculate-difference-in-days-of-two-dates-in-teradara/m-p/150890#M2576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All database or quasi-database (ie Excel) systems store dates as numbers. Dates are typically stored as # of days from a given offset (1 Jan 1960 in SAS, 31 Dec 1899 in LibreOffice Calc/Excel), timestamps as # of seconds from the same offset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you have real date values, simple subtracting will work, if you have timestamps, int(value1/86400) - int(value2/86400) will do the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 08:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-can-we-calculate-difference-in-days-of-two-dates-in-teradara/m-p/150890#M2576</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-12-16T08:02:36Z</dc:date>
    </item>
  </channel>
</rss>

