<?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: date difference in hour and minute in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/date-difference-in-hour-and-minute/m-p/715035#M1067624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is the document. Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Sep 2014 23:39:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-04T23:39:16Z</dc:date>
    <item>
      <title>date difference in hour and minute</title>
      <link>https://community.qlik.com/t5/QlikView/date-difference-in-hour-and-minute/m-p/715034#M1067623</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;&lt;/P&gt;&lt;P&gt;i have two date fields like date1 and date2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date1 has value 2014-08-30 05:03:16.000&lt;/P&gt;&lt;P&gt;date 2 has value 2014-08-30 10:02:36.000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to find out the difference between date2 and date1 and need the output like 4.59....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how its done..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranjith Kumaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 23:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-difference-in-hour-and-minute/m-p/715034#M1067623</guid>
      <dc:creator />
      <dc:date>2014-09-04T23:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: date difference in hour and minute</title>
      <link>https://community.qlik.com/t5/QlikView/date-difference-in-hour-and-minute/m-p/715035#M1067624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is the document. Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 23:39:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-difference-in-hour-and-minute/m-p/715035#M1067624</guid>
      <dc:creator />
      <dc:date>2014-09-04T23:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: date difference in hour and minute</title>
      <link>https://community.qlik.com/t5/QlikView/date-difference-in-hour-and-minute/m-p/715036#M1067625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but the output become 4.12.20.. i need it as 4.59&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranjith Kumaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 23:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-difference-in-hour-and-minute/m-p/715036#M1067625</guid>
      <dc:creator />
      <dc:date>2014-09-04T23:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re: date difference in hour and minute</title>
      <link>https://community.qlik.com/t5/QlikView/date-difference-in-hour-and-minute/m-p/715037#M1067626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me suggest some changes to the solution you uploaded.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=time([date 2]-date1, 'HH:MM:SS')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The mask 'HH:MM:SS' is incorrect. It should be 'hh:mm:ss' (lower case). "MM" means "Month", which gives an incorrect result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the best function to use here is "interval()" rather than "time()". Time will give an incorrect result if the difference is greater than 24 hours. The solution I suggest is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=interval([date 2]-date1, 'hh:mm:ss')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 23:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-difference-in-hour-and-minute/m-p/715037#M1067626</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-09-04T23:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: date difference in hour and minute</title>
      <link>https://community.qlik.com/t5/QlikView/date-difference-in-hour-and-minute/m-p/715038#M1067627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Rob. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 16:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-difference-in-hour-and-minute/m-p/715038#M1067627</guid>
      <dc:creator />
      <dc:date>2014-09-05T16:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: date difference in hour and minute</title>
      <link>https://community.qlik.com/t5/QlikView/date-difference-in-hour-and-minute/m-p/715039#M1067628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_132047_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/66089_QlikCommunity_Thread_132047_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 19:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-difference-in-hour-and-minute/m-p/715039#M1067628</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-09-05T19:08:29Z</dc:date>
    </item>
  </channel>
</rss>

