<?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 Difference between date fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-date-fields/m-p/1148530#M891388</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;I would appreciate some help to show me the difference between two date fields in minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The date fields are in the format dd/mm/yyyy hh:mm:ss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;01/01/2016 13:00:00&lt;/P&gt;&lt;P&gt;01/02/2016 13:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the above example I would like to show the result 1440 minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>danielnevitt</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Difference between date fields</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-date-fields/m-p/1148530#M891388</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;I would appreciate some help to show me the difference between two date fields in minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The date fields are in the format dd/mm/yyyy hh:mm:ss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;01/01/2016 13:00:00&lt;/P&gt;&lt;P&gt;01/02/2016 13:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the above example I would like to show the result 1440 minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-date-fields/m-p/1148530#M891388</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between date fields</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-date-fields/m-p/1148531#M891389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it with: interval(Date2 - Date1, 'mm')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 12:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-date-fields/m-p/1148531#M891389</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-08-22T12:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between date fields</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-date-fields/m-p/1148532#M891390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(date2 - date1) * 24 * 60&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;44640 minutes with DD/MM/YYYY format (about 1 month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I think you mean MM/DD/YYYY format, so the result is 1440 minutes (1 day = 1 * 24 * 60)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 13:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-date-fields/m-p/1148532#M891390</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-08-22T13:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between date fields</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-date-fields/m-p/1148533#M891391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the below code in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date1,Date2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/01/2016 13:00:00,01/02/2016 13:00:00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;load Date(timestamp#(Date2,'MM/DD/YYYY hh:mm:ss'),'DD/MM/YYYY') as Dt2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(timestamp#(Date1,'MM/DD/YYYY hh:mm:ss'),'DD/MM/YYYY') as Dt1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Interval( (Date(timestamp#(Date2,'MM/DD/YYYY hh:mm:ss'),'DD/MM/YYYY')) -&amp;nbsp;&amp;nbsp; (Date(timestamp#(Date1,'MM/DD/YYYY hh:mm:ss'),'DD/MM/YYYY')), 'mm') as DTDiff&lt;/P&gt;&lt;P&gt; Resident T1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 13:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-date-fields/m-p/1148533#M891391</guid>
      <dc:creator>ramchalla</dc:creator>
      <dc:date>2016-08-22T13:32:52Z</dc:date>
    </item>
  </channel>
</rss>

