<?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: Calculation with 2 dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-with-2-dates/m-p/381112#M491304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To see whole days (i.e. to change 140,68972222 to 140), you can use the floor function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF (ACCEPTATIONDATE &amp;lt;&amp;gt; MakeDate(1900,1,1), FLOOR(NUM(ACCEPTATIONDATE - DATE(SEEKERRESPONSEDATETIME))),0 )AS DAYSREGISTERED;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Aug 2012 12:51:20 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2012-08-27T12:51:20Z</dc:date>
    <item>
      <title>Calculation with 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-with-2-dates/m-p/381111#M491303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if have a problem with a calculation in my LOAD script.&lt;/P&gt;&lt;P&gt;I have the following situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the date is not equal to 01-01-1900 then i want the difference between a date field(Acceptationdate) - datetime field (registeredDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i have the following line in my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF (ACCEPTATIONDATE &amp;lt;&amp;gt; MakeDate(1900,1,1), NUM(ACCEPTATIONDATE - DATE(SEEKERRESPONSEDATETIME)),0 )AS DAYSREGISTERED;&lt;/P&gt;&lt;P&gt;But when i look into my table (preview) and see what is in the column DAYSREGISTERED i not see whole days... for example 140 days. but i see for example 140,68972222&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody an idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 12:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-with-2-dates/m-p/381111#M491303</guid>
      <dc:creator />
      <dc:date>2012-08-27T12:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation with 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-with-2-dates/m-p/381112#M491304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To see whole days (i.e. to change 140,68972222 to 140), you can use the floor function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF (ACCEPTATIONDATE &amp;lt;&amp;gt; MakeDate(1900,1,1), FLOOR(NUM(ACCEPTATIONDATE - DATE(SEEKERRESPONSEDATETIME))),0 )AS DAYSREGISTERED;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 12:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-with-2-dates/m-p/381112#M491304</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2012-08-27T12:51:20Z</dc:date>
    </item>
  </channel>
</rss>

