<?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 How to calculate the time difference between two different date? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-the-time-difference-between-two-different-date/m-p/461197#M1165447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Morning....! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have issue with date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate time difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have two date like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End date = 2012/10/02&amp;nbsp; 11:55:25 PM.&lt;/P&gt;&lt;P&gt;Start Date= 2012/10/03&amp;nbsp; 01:55:26 AM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;want_date= End date -Startdate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a 'want_date' as Minitues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,,,. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kabilan K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2012 04:15:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-03T04:15:54Z</dc:date>
    <item>
      <title>How to calculate the time difference between two different date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-the-time-difference-between-two-different-date/m-p/461197#M1165447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Morning....! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have issue with date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate time difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have two date like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End date = 2012/10/02&amp;nbsp; 11:55:25 PM.&lt;/P&gt;&lt;P&gt;Start Date= 2012/10/03&amp;nbsp; 01:55:26 AM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;want_date= End date -Startdate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a 'want_date' as Minitues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,,,. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kabilan K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 04:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-the-time-difference-between-two-different-date/m-p/461197#M1165447</guid>
      <dc:creator />
      <dc:date>2012-10-03T04:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the time difference between two different date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-the-time-difference-between-two-different-date/m-p/461198#M1165448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;=Interval(Enddate-Startdate, 'mm')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is assuming that your timestamps are recognized correctly in QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works fine if you define them like this:&lt;/P&gt;&lt;P&gt;let Startdate = num(timestamp#('2012/10/02&amp;nbsp; 11:55:25 PM','YYYY/MM/DD&amp;nbsp; hh:mm:ss TT'));&lt;/P&gt;&lt;P&gt;let Enddate= num(timestamp#('2012/10/03&amp;nbsp; 01:55:26 AM','YYYY/MM/DD&amp;nbsp; hh:mm:ss TT'));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 05:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-the-time-difference-between-two-different-date/m-p/461198#M1165448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-03T05:03:44Z</dc:date>
    </item>
  </channel>
</rss>

