<?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: date difference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/date-difference/m-p/102213#M601004</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That means, you are splitting Date and Time different - If i understand correct. But when we are doing with full timestamp it is making problem. I hope this resolve for &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/priqvqlik"&gt;priqvqlik&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2018 10:07:18 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2018-11-02T10:07:18Z</dc:date>
    <item>
      <title>date difference</title>
      <link>https://community.qlik.com/t5/QlikView/date-difference/m-p/102208#M600999</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;need help with calculating difference between two dates timestamps which should exclude weekends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: date1= 12-nov-2018&amp;nbsp; 8:30 am&lt;/P&gt;&lt;P&gt;date2 = 19-nov-2018&amp;nbsp;&amp;nbsp; 9:30 am&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need the difference(date2-date1)&amp;nbsp; result =&amp;nbsp; 5 days 1hr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 04:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-difference/m-p/102208#M600999</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2018-11-02T04:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: date difference</title>
      <link>https://community.qlik.com/t5/QlikView/date-difference/m-p/102209#M601000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prithvi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use interval function:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/FormattingFunctions/Interval.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/FormattingFunctions/Interval.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/FormattingFunctions/Interval.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vitalii&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 05:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-difference/m-p/102209#M601000</guid>
      <dc:creator>vitaliichupryna</dc:creator>
      <dc:date>2018-11-02T05:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: date difference</title>
      <link>https://community.qlik.com/t5/QlikView/date-difference/m-p/102210#M601001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prithvi, you can use Networkdays to count working days:&lt;/P&gt;&lt;P&gt; &lt;A href="https://help.qlik.com/es-ES/qlikview/November2017/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/networkdays.htm" title="https://help.qlik.com/es-ES/qlikview/November2017/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/networkdays.htm"&gt;https://help.qlik.com/es-ES/qlikview/November2017/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/networkdays.h…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In example:&lt;/P&gt;&lt;P&gt;=If(&lt;EM style="font-size: 13.3333px;"&gt;date1_time&amp;gt;&lt;EM style="font-size: 13.3333px;"&gt;date2_time,&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;(NetWorkDays(&lt;EM&gt;date1_date&lt;/EM&gt;,&lt;EM&gt;date2_date&lt;/EM&gt;)-1) &amp;amp; 'days ' &amp;amp; time(&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;date2_time&lt;/EM&gt;&lt;/SPAN&gt;-&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;date1_time&lt;/EM&gt;&lt;/SPAN&gt;, 'h') &amp;amp; 'hr',&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(NetWorkDays(&lt;/SPAN&gt;&lt;EM style="font-size: 13.3333px;"&gt;date1_date&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,&lt;/SPAN&gt;&lt;EM style="font-size: 13.3333px;"&gt;date2_date&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)-2) &amp;amp; 'days ' &amp;amp; time(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;date2_time&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;date1_time&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;, 'h') &amp;amp; 'hr')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 08:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-difference/m-p/102210#M601001</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-11-02T08:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: date difference</title>
      <link>https://community.qlik.com/t5/QlikView/date-difference/m-p/102211#M601002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ruben, Eager to know. Her requirement is little different. I am trying to help but not yet solved. May be you have other work around. I can think Master Calendar with Timestamp for every hour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming to requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;date1, date2 &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;12-nov-2018&amp;nbsp; 8:30 am, &lt;/SPAN&gt;19-nov-2018&amp;nbsp; 9:30 am&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;She need result as below&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;date1, date2, Expected&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;12-nov-2018&amp;nbsp; 8:30 am, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;19-nov-2018&amp;nbsp; 9:30 am, 5 Days 1 Hour&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Explanation about requirement&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;date1 start @8:30 am that means she need to calculate as&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;12-nov-2018 8:30 am to &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;13-nov-2018 8:30 am as 1 Day&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;13-nov-2018 8:30 am to &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;14-nov-2018 8:30 am as 2 Day&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;14-nov-2018 8:30 am to &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;15-nov-2018 8:30 am as 3 Day&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;15-nov-2018 8:30 am to &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;16-nov-2018 8:30 am as 4 Day&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;16-nov-2018 8:30 am to &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;17-nov-2018 8:30 am as 5 Day&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;17-nov-2018 8:30 am to &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;18-nov-2018 8:30 am as 6 Day&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;18-nov-2018 8:30 am to &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;19-nov-2018 8:30 am as 7 Day&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Till here We got it as 7 Days - And in this arbitrary she want to exclude 2 Days as in this week we have Saturday and Sunday.&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;STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;That means we will get 5 Days. Now How 1 Hour is needed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;From &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;19-nov-2018 8:30 am to &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;19-nov-2018 9:30 am --&amp;gt; If we calculate, It is showing 1 Hour.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;So, Finally Result field is &lt;SPAN style="color: #ff0000;"&gt;5 Days 1 Hour&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;I hope I make clear&lt;/SPAN&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 09:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-difference/m-p/102211#M601002</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-11-02T09:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: date difference</title>
      <link>https://community.qlik.com/t5/QlikView/date-difference/m-p/102212#M601003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil, sorry but I don't understand the issue, I tried to set fixed values to make a test with '12-nov-2018&amp;nbsp; 8:30 am' as date1 and '19-nov-2018&amp;nbsp; 9:30 am' as date2:&lt;/P&gt;&lt;P&gt;=If(time('9:30')&amp;gt;Time('8:30'),&lt;/P&gt;&lt;P&gt;(NetWorkDays('12/11/2018','19/11/2018')-1) &amp;amp; 'days ' &amp;amp; time('9:30'-'8:30', 'h') &amp;amp; 'hr',&lt;/P&gt;&lt;P&gt;(NetWorkDays('12/11/2018','19/11/2018')-2) &amp;amp; 'days ' &amp;amp; time('8:30'-'9:30', 'h') &amp;amp; 'hr')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns '5days 1hr', is this wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 09:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-difference/m-p/102212#M601003</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-11-02T09:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: date difference</title>
      <link>https://community.qlik.com/t5/QlikView/date-difference/m-p/102213#M601004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That means, you are splitting Date and Time different - If i understand correct. But when we are doing with full timestamp it is making problem. I hope this resolve for &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/priqvqlik"&gt;priqvqlik&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 10:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-difference/m-p/102213#M601004</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-11-02T10:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: date difference</title>
      <link>https://community.qlik.com/t5/QlikView/date-difference/m-p/102214#M601005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I separated them, that causes to have a check to know with time part is higher to get the correct days, but allows to use networkdays() or a flag in dates of master calendar to count working days and also helps keeping the time part as a simple substraction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe other way can be using (Date1-Date2)-Count(WeekendDatesInInterval)... still you will have to deal to give in 'x days h hours' format, wich will be easier having separated days and hours. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 10:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-difference/m-p/102214#M601005</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-11-02T10:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: date difference</title>
      <link>https://community.qlik.com/t5/QlikView/date-difference/m-p/102215#M601006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ruben!&lt;/P&gt;&lt;P&gt;this expression works but&amp;nbsp; is not giving results accurately for some of the date values.&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;date1 &amp;amp; time1= &lt;SPAN style="color: #5a656c; font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;20-Aug-2016, 12:32 am&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #5a656c; font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #5a656c; font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;date2 &amp;amp; time2 = &lt;SPAN style="color: #5a656c; font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;20-Aug-2016, 1:42 am&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #5a656c; font-size: 14.4px; font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;difference of these would be 1hr 10min,&amp;nbsp; this can can be rounded to&amp;nbsp; 2hr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the expression is returning as&amp;nbsp; -1day 1hr.&lt;/P&gt;&lt;P&gt;can you please help with this , also rounding of accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 08:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-difference/m-p/102215#M601006</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2018-11-05T08:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: date difference</title>
      <link>https://community.qlik.com/t5/QlikView/date-difference/m-p/102216#M601007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ruben!&lt;/P&gt;&lt;P&gt;can you please tell how to calculate total no.of seconds (excluding weekends).&lt;/P&gt;&lt;P&gt;And probably we can convert to no.of days and hours from it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Your previous expression works but&amp;nbsp; is not giving results accurately for some of the date values.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;eg:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;date1 &amp;amp; time1= &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 14.4px; font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; color: #5a656c;"&gt;20-Aug-2016, 12:32 am&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 14.4px; font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; color: #5a656c;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 14.4px; font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; color: #5a656c;"&gt;date2 &amp;amp; time2 = &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;20-Aug-2016, 1:42 am&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 14.4px; font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; color: #5a656c;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;difference of these would be 1hr 10min,&amp;nbsp; this can can be rounded to&amp;nbsp; 2hr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;but the expression is returning as&amp;nbsp; -1day 1hr.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;can you please help with this , also rounding of accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 08:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-difference/m-p/102216#M601007</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2018-11-05T08:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: date difference</title>
      <link>https://community.qlik.com/t5/QlikView/date-difference/m-p/102217#M601008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prithvi, that one fails because 20/08/2016 is not a working day, so I think the hours shouldn't be counted either, this can be solved with a condition to check if there is at least 1 working day, a&lt;SPAN style="font-size: 10pt;"&gt;nd rounding hours up can be donde with ceil, in example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(NetWorkDays('23/08/2016','23/08/2016')&amp;gt;0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; If(time('13:42')&amp;gt;Time('12:32'),&lt;/P&gt;&lt;P&gt;(NetWorkDays('23/08/2016','23/08/2016')-1) &amp;amp; 'days ' &amp;amp; time(&lt;STRONG&gt;Ceil(&lt;/STRONG&gt;'13:42'-'12:32'&lt;STRONG&gt;, 1/24)&lt;/STRONG&gt;, 'h') &amp;amp; 'hr',&lt;/P&gt;&lt;P&gt;(NetWorkDays('23/08/2016','23/08/2016')-2) &amp;amp; 'days ' &amp;amp; time(&lt;STRONG&gt;Ceil(&lt;/STRONG&gt;'12:32'-'13:42'&lt;STRONG&gt;, 1/24)&lt;/STRONG&gt;, 'h') &amp;amp; 'hr')&lt;STRONG&gt;, '0days 0hr')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 10:02:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-difference/m-p/102217#M601008</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-11-05T10:02:28Z</dc:date>
    </item>
  </channel>
</rss>

