<?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 Date and Time Difference in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-and-Time-Difference/m-p/2520085#M106368</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 columns in my table that are both shown like this:&lt;/P&gt;&lt;P&gt;Date 1 - dd/mm/yyyy hh:mm:ss&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date 2 - dd/mm/yyyy hh:mm:ss&lt;/P&gt;&lt;P&gt;I want to show the difference between the two so that I can see how long it has been with a person but everything I try, nothing seems to work. Any ideas please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 11:58:08 GMT</pubDate>
    <dc:creator>New-here1</dc:creator>
    <dc:date>2025-06-04T11:58:08Z</dc:date>
    <item>
      <title>Date and Time Difference</title>
      <link>https://community.qlik.com/t5/App-Development/Date-and-Time-Difference/m-p/2520085#M106368</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 columns in my table that are both shown like this:&lt;/P&gt;&lt;P&gt;Date 1 - dd/mm/yyyy hh:mm:ss&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date 2 - dd/mm/yyyy hh:mm:ss&lt;/P&gt;&lt;P&gt;I want to show the difference between the two so that I can see how long it has been with a person but everything I try, nothing seems to work. Any ideas please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-and-Time-Difference/m-p/2520085#M106368</guid>
      <dc:creator>New-here1</dc:creator>
      <dc:date>2025-06-04T11:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Date and Time Difference</title>
      <link>https://community.qlik.com/t5/App-Development/Date-and-Time-Difference/m-p/2520096#M106369</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/202546"&gt;@New-here1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried Interval ?&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/November2024/Subsystems/Hub/Content/Sense_Hub/Scripting/FormattingFunctions/Interval.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/November2024/Subsystems/Hub/Content/Sense_Hub/Scripting/FormattingFunctions/Interval.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 12:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-and-Time-Difference/m-p/2520096#M106369</guid>
      <dc:creator>BPiotrowski</dc:creator>
      <dc:date>2025-06-04T12:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Date and Time Difference</title>
      <link>https://community.qlik.com/t5/App-Development/Date-and-Time-Difference/m-p/2520117#M106378</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Maybe you should try that solution :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Interval(Timestamp#([Date2], 'DD/MM/YYYY hh:mm:ss') -Timestamp#([Date1], 'DD/MM/YYYY hh:mm:ss'), 'd hh:mm:ss')&lt;BR /&gt;&lt;BR /&gt;Have a nice day,&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-and-Time-Difference/m-p/2520117#M106378</guid>
      <dc:creator>Eloi</dc:creator>
      <dc:date>2025-06-04T14:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date and Time Difference</title>
      <link>https://community.qlik.com/t5/App-Development/Date-and-Time-Difference/m-p/2520125#M106379</link>
      <description>&lt;P&gt;Sadly interval didn't work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-and-Time-Difference/m-p/2520125#M106379</guid>
      <dc:creator>New-here1</dc:creator>
      <dc:date>2025-06-04T14:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date and Time Difference</title>
      <link>https://community.qlik.com/t5/App-Development/Date-and-Time-Difference/m-p/2520126#M106380</link>
      <description>&lt;P&gt;unfortunately, interval doesnt work. The result just comes back with nothing&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-and-Time-Difference/m-p/2520126#M106380</guid>
      <dc:creator>New-here1</dc:creator>
      <dc:date>2025-06-04T14:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Date and Time Difference</title>
      <link>https://community.qlik.com/t5/App-Development/Date-and-Time-Difference/m-p/2520170#M106382</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;in&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/329705"&gt;@Eloi&lt;/a&gt;&amp;nbsp;reply use trim if in case raw column is string ( you can verify calling fields -list box&amp;nbsp; in sheet or in preview , String values will be aligned left side , where as date and numeric values will align rightside).&lt;BR /&gt;&lt;BR /&gt;Interval(Timestamp#([trim(Date2]), 'DD/MM/YYYY hh:mm:ss') -Timestamp#([trim(Date1]), 'DD/MM/YYYY hh:mm:ss'), 'd hh:mm:ss')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 19:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-and-Time-Difference/m-p/2520170#M106382</guid>
      <dc:creator>PREMinQLIK_DBS2</dc:creator>
      <dc:date>2025-06-04T19:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date and Time Difference</title>
      <link>https://community.qlik.com/t5/App-Development/Date-and-Time-Difference/m-p/2520194#M106384</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/202546"&gt;@New-here1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Interval(value2-value1), as suggested by&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/318470"&gt;@BPiotrowski&lt;/a&gt;&amp;nbsp;, &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/329705"&gt;@Eloi&lt;/a&gt;&amp;nbsp;and &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/134764"&gt;@PREMinQLIK_DBS2&lt;/a&gt;&amp;nbsp;, will be the best way forward.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You bet blank/null values because Qlik does not recognise the two fields as timestamps.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Make sure that you are able to load your [Date 1] amf [Date 2] fields as timestamps. That could be done in the script or in the measure. Using timestamp#() is a feasable way in both cases.&lt;/LI&gt;&lt;LI&gt;When you have made sure that both fields are recognised as timestamps,&amp;nbsp; then you can subtract one from the other to get an interval . Wrap interval() around that expression to get a user readable format.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If you have issues getting the Date fields into timestamp formats then please add additional information on how the timestamps are created in the script. And which steps you have tried to solve your issue.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 04:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-and-Time-Difference/m-p/2520194#M106384</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2025-06-05T04:52:55Z</dc:date>
    </item>
  </channel>
</rss>

