<?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 Calculation 2 datetime in hours in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-2-datetime-in-hours/m-p/113964#M17635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID, STARTDATE, ENDDATE&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 667px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="34" width="167"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="223"&gt;30/10/17 18:59:00&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="277"&gt;31/10/2017&amp;nbsp; 10:30:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="34" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;30/10/17 19:16:00&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;31/10/2017&amp;nbsp; 12:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I want to calculate the delay in hours from startdate and enddate.&lt;/P&gt;&lt;P&gt;INTERVAL(DATE(DATE#(ENDDATE, 'DD/MM/YYYY hh:mm:ss'),'DD/MM/YYYY hh:mm:ss') - DATE(DATE#(STARTDATE, 'DD/MM/YYYY hh:mm:ss'),'DD/MM/YYYY hh:mm:ss'), 'H') does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2018 22:06:44 GMT</pubDate>
    <dc:creator>suzel404</dc:creator>
    <dc:date>2018-10-17T22:06:44Z</dc:date>
    <item>
      <title>Calculation 2 datetime in hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-2-datetime-in-hours/m-p/113964#M17635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID, STARTDATE, ENDDATE&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 667px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="34" width="167"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="223"&gt;30/10/17 18:59:00&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="277"&gt;31/10/2017&amp;nbsp; 10:30:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="34" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;30/10/17 19:16:00&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;31/10/2017&amp;nbsp; 12:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I want to calculate the delay in hours from startdate and enddate.&lt;/P&gt;&lt;P&gt;INTERVAL(DATE(DATE#(ENDDATE, 'DD/MM/YYYY hh:mm:ss'),'DD/MM/YYYY hh:mm:ss') - DATE(DATE#(STARTDATE, 'DD/MM/YYYY hh:mm:ss'),'DD/MM/YYYY hh:mm:ss'), 'H') does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 22:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-2-datetime-in-hours/m-p/113964#M17635</guid>
      <dc:creator>suzel404</dc:creator>
      <dc:date>2018-10-17T22:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation 2 datetime in hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-2-datetime-in-hours/m-p/113965#M17636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your start dates show only two year digits, hence your format code should show only two 'YY'.&lt;/P&gt;&lt;P&gt;Also check that there are no additional spaces etc. in your field values that are not part of your format code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides that, you don't need to format the dates using Date() function, when you want to format the result of the subtraction using Interval().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 22:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-2-datetime-in-hours/m-p/113965#M17636</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-10-17T22:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation 2 datetime in hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-2-datetime-in-hours/m-p/113966#M17637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll check !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 07:43:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-2-datetime-in-hours/m-p/113966#M17637</guid>
      <dc:creator>suzel404</dc:creator>
      <dc:date>2018-10-18T07:43:39Z</dc:date>
    </item>
  </channel>
</rss>

