<?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: Calculating time difference between date and time stamps in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-time-difference-between-date-and-time-stamps/m-p/1666395#M728024</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;Timestamp#() is used to tell the format of the timestamp that is being readed, so in this case it should be&amp;nbsp;'DD/MM/YYYY hh:mm' (note that time letters are lowercase: MM for months, mm for minutes), so the final table shoud be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Main:
load
*,
  interval(Timestamp#([End Date],'DD/MM/YYYY hh:mm') - Timestamp#([Start Date],'DD/MM/YYYY hh:mm'),'hh:mm') as [Time difference]
  
  Resident
Staging;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2020 16:44:14 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2020-01-16T16:44:14Z</dc:date>
    <item>
      <title>Calculating time difference between date and time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-time-difference-between-date-and-time-stamps/m-p/1666340#M728023</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having an issue with a combined&amp;nbsp; date and time stamp.&lt;/P&gt;&lt;P&gt;Basically all I want to do is calculate (In hours) the time difference between a start day&amp;amp;time stamp and the end of the day&amp;amp;time stamp.&amp;nbsp;&lt;/P&gt;&lt;P&gt;All start and end times are differentiated by a reference number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I researched in the Qlik community and tried different solutions however, even when QlikView returns a result it will still return a number which is not the correct amount of hours between a start and an end time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached an example of what I am trying to achieve&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-time-difference-between-date-and-time-stamps/m-p/1666340#M728023</guid>
      <dc:creator>isciberras</dc:creator>
      <dc:date>2024-11-16T19:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating time difference between date and time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-time-difference-between-date-and-time-stamps/m-p/1666395#M728024</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Timestamp#() is used to tell the format of the timestamp that is being readed, so in this case it should be&amp;nbsp;'DD/MM/YYYY hh:mm' (note that time letters are lowercase: MM for months, mm for minutes), so the final table shoud be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Main:
load
*,
  interval(Timestamp#([End Date],'DD/MM/YYYY hh:mm') - Timestamp#([Start Date],'DD/MM/YYYY hh:mm'),'hh:mm') as [Time difference]
  
  Resident
Staging;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 16:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-time-difference-between-date-and-time-stamps/m-p/1666395#M728024</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-01-16T16:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating time difference between date and time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-time-difference-between-date-and-time-stamps/m-p/1675067#M728025</link>
      <description>&lt;P&gt;Did Ruben's post get you what you needed?&amp;nbsp; If so, do not forget to return to your thread and on his post, use the Accept as Solution button to mark his post as the solution and given him credit for the help as well as let other Members know it worked.&amp;nbsp; If you are still working on things, leave us an update on what you still need.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 22:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-time-difference-between-date-and-time-stamps/m-p/1675067#M728025</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-02-12T22:09:18Z</dc:date>
    </item>
  </channel>
</rss>

