<?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: subtract timestamp with current timestamp? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/subtract-timestamp-with-current-timestamp/m-p/1266419#M25952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(Today()-Date#(Date,'DD/DD/YYYY hh:mm:ss TT'),'hh:mm:ss')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2016 04:44:41 GMT</pubDate>
    <dc:creator>sushil353</dc:creator>
    <dc:date>2016-12-02T04:44:41Z</dc:date>
    <item>
      <title>subtract timestamp with current timestamp?</title>
      <link>https://community.qlik.com/t5/App-Development/subtract-timestamp-with-current-timestamp/m-p/1266418#M25951</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 have a date field as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;01/12/2016 01:20:00 PM&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;03/12/2016 03:30:00 PM &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;06/12/2016 05:20:00 PM &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to subtract the above Date field with the current date time and the output should be in hh:mm:ss&lt;/P&gt;&lt;P&gt;(i want to find the difference between dates&amp;nbsp;&amp;nbsp;&amp;nbsp; ---(Date - current timestamp))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 04:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/subtract-timestamp-with-current-timestamp/m-p/1266418#M25951</guid>
      <dc:creator>gauravgg</dc:creator>
      <dc:date>2016-12-02T04:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: subtract timestamp with current timestamp?</title>
      <link>https://community.qlik.com/t5/App-Development/subtract-timestamp-with-current-timestamp/m-p/1266419#M25952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(Today()-Date#(Date,'DD/DD/YYYY hh:mm:ss TT'),'hh:mm:ss')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 04:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/subtract-timestamp-with-current-timestamp/m-p/1266419#M25952</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2016-12-02T04:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: subtract timestamp with current timestamp?</title>
      <link>https://community.qlik.com/t5/App-Development/subtract-timestamp-with-current-timestamp/m-p/1266420#M25953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If DateField is a string:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;=Interval(Today()-Date#(DateField,'DD/MM/YYYY hh:mm:ss TT'),'hh:mm:ss')&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do the date interpretation during the initial load, then its simpler:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;=Interval(Today() - DateField, 'hh:mm:ss')&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 04:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/subtract-timestamp-with-current-timestamp/m-p/1266420#M25953</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-12-02T04:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: subtract timestamp with current timestamp?</title>
      <link>https://community.qlik.com/t5/App-Development/subtract-timestamp-with-current-timestamp/m-p/1266421#M25954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 05:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/subtract-timestamp-with-current-timestamp/m-p/1266421#M25954</guid>
      <dc:creator>gauravgg</dc:creator>
      <dc:date>2016-12-02T05:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: subtract timestamp with current timestamp?</title>
      <link>https://community.qlik.com/t5/App-Development/subtract-timestamp-with-current-timestamp/m-p/1266422#M25955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Interval(Today()-Date#(DateField,'DD/MM/YYYY hh:mm:ss TT'),'hh:mm:ss')&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above expression (already suggested by Jonathan) should work. Could you post a qvw that shows how it is not working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 05:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/subtract-timestamp-with-current-timestamp/m-p/1266422#M25955</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-12-02T05:06:19Z</dc:date>
    </item>
  </channel>
</rss>

