<?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: How to calculate difference between to dates in Seconds in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849705#M298076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try tis way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Interval(Interval(Sum(ProProductiveTime),'hh:mm:ss') - Interval(Sum(ProNonProductiveTime),'hh:mm:ss'),'hh:mm:ss')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2015 09:34:25 GMT</pubDate>
    <dc:creator>buzzy996</dc:creator>
    <dc:date>2015-06-30T09:34:25Z</dc:date>
    <item>
      <title>How to calculate difference between to dates in Seconds</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849702#M298073</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;i need to calculate the difference between two dates in Seconds. start date: 6/8/2015 23:32:35 and End Date 6/8/2015 &lt;SPAN style="font-size: 13.3333330154419px;"&gt;23:32:50.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Please suggest me the formula.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 08:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849702#M298073</guid>
      <dc:creator />
      <dc:date>2015-06-30T08:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between to dates in Seconds</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849703#M298074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script, your timestamp format should be set accordingly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET TimestampFormat = 'M/D/YYYY hh:mm:ss';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can load your values just use interval():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=interval( [End Date]-[Start Date],'ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you want to do further calculcation in units seconds:&lt;/P&gt;&lt;P&gt;=num#(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;interval( [End Date]-[Start Date],'ss'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 09:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849703#M298074</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-30T09:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between to dates in Seconds</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849704#M298075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my document&amp;nbsp; the time format is set like this &lt;STRONG&gt;TimestampFormat='M/D/YYYY hh:mm:ss[.fff] TT';&lt;/STRONG&gt; and in the script i have given &lt;STRONG&gt;Interval(END_DATE-START_DATE,'ss'). But I am getting the result as 00 only.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 09:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849704#M298075</guid>
      <dc:creator />
      <dc:date>2015-06-30T09:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between to dates in Seconds</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849705#M298076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try tis way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Interval(Interval(Sum(ProProductiveTime),'hh:mm:ss') - Interval(Sum(ProNonProductiveTime),'hh:mm:ss'),'hh:mm:ss')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 09:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849705#M298076</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-06-30T09:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between to dates in Seconds</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849706#M298077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to interpret the field values correctly before you can perform numeric calculations. If you&amp;nbsp; don't want to change your global script settings, try&lt;/P&gt;&lt;P&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;interval( timestamp#([End Date],&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'M/D/YYYY hh:mm:ss')&lt;/SPAN&gt;-timestamp#([Start Date],&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'M/D/YYYY hh:mm:ss')&lt;/SPAN&gt;,'ss')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 09:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849706#M298077</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-30T09:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between to dates in Seconds</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849707#M298078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in script.&lt;/P&gt;&lt;P&gt;LOAD *, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Interval(timestamp#(End_Date, 'mm/dd/yyyy hh:mm:ss') - timestamp#(start_date, 'mm/dd/yyyy hh:mm:ss'), 'ss') as IntervalT &lt;/P&gt;&lt;P&gt;Inline [&lt;/P&gt;&lt;P&gt;start_date , End_Date &lt;/P&gt;&lt;P&gt;6/8/2015 23:32:35,&amp;nbsp; 6/8/2015 23:32:50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 09:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849707#M298078</guid>
      <dc:creator>senpradip007</dc:creator>
      <dc:date>2015-06-30T09:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between to dates in Seconds</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849708#M298079</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;I couldnt solve the issue using any of the above Suggestions. I am getting '_' as a result of this. Please help me to solve this&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849708#M298079</guid>
      <dc:creator />
      <dc:date>2015-06-30T12:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between to dates in Seconds</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849709#M298080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u share ur app and expected output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849709#M298080</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-06-30T12:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between to dates in Seconds</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849710#M298081</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;the Issue is fixed now. Due to some reasons the time format was wrong and that was causing the issue. And now i am able to find the difference using the Interval function alone. Thank you all for the valuable time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849710#M298081</guid>
      <dc:creator />
      <dc:date>2015-06-30T12:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between to dates in Seconds</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849711#M298082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;load StartDate,EndDate,&lt;/P&gt;&lt;P&gt;Interval(Timestamp#(EndDate,'D/M/YYYY hh:mm:ss')-Timestamp#(StartDate,'D/M/YYYY hh:mm:ss'),'ss')&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt; [&lt;/P&gt;&lt;P&gt;StartDate,EndDate &lt;/P&gt;&lt;P&gt;6/8/2015 23:32:35,6/8/2015 23:32:50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-to-dates-in-Seconds/m-p/849711#M298082</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-06-30T12:45:27Z</dc:date>
    </item>
  </channel>
</rss>

