<?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: Difference between two Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-two-Dates/m-p/469320#M695015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks HIC but how to include Start and End date...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me put this in way, count of days between&amp;nbsp; Start and end date (Including start and end date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jun 2013 10:51:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-13T10:51:33Z</dc:date>
    <item>
      <title>Difference between two Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-Dates/m-p/469316#M695011</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 find the difference between two dates. For this i used this expression below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;dayStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;timestamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(END&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;dayStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;timestamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(START&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how to include the Start and end date also while subtracting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START Date: 24-Feb-2013&amp;nbsp; and END Date: 2-Mar-2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i used the above expression, Result is : 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i need the result as 7 (24,25,26,27,28,1,2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;S.Selvakuamr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 08:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-Dates/m-p/469316#M695011</guid>
      <dc:creator />
      <dc:date>2013-06-13T08:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-Dates/m-p/469317#M695012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try &lt;/P&gt;&lt;P&gt;Interval() function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example--&lt;/P&gt;&lt;P&gt;Interval(EndDate - StartDate)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 08:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-Dates/m-p/469317#M695012</guid>
      <dc:creator />
      <dc:date>2013-06-13T08:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-Dates/m-p/469318#M695013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Updated code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Num(date#('2-Mar-2013','D-MMM-YYYY'))+1 - num(date#('24-Feb-2013','D-MMM-YYYY'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;=Num(date#('End','D-MMM-YYYY'))+1 - num(date#('Start','D-MMM-YYYY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=date#('End','D-MMM-YYYY')+1 - date#('Start','D-MMM-YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;iNTERVAL(date#('2-Mar-2013','D-MMM-YYYY') - date#('24-Feb-2013','D-MMM-YYYY'),'DD')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 08:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-Dates/m-p/469318#M695013</guid>
      <dc:creator />
      <dc:date>2013-06-13T08:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-Dates/m-p/469319#M695014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that you have interpreted the fields correctly using Date#() or TimeStamp#() - Not Date() and TimeStamp(). If you have done so, you can just subtract one date from another and the result will be number of days between the two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date#(END, 'DD-MMM-YYYY') - Date#(START, 'DD-MMM-YYYY') as Duration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 08:54:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-Dates/m-p/469319#M695014</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-06-13T08:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-Dates/m-p/469320#M695015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks HIC but how to include Start and End date...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me put this in way, count of days between&amp;nbsp; Start and end date (Including start and end date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 10:51:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-Dates/m-p/469320#M695015</guid>
      <dc:creator />
      <dc:date>2013-06-13T10:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-Dates/m-p/469321#M695016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simply add 1 to the result. Or use DayStart for the start date and DayEnd for the end date and round the result: round(dayend(end)-daystart(start))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 10:54:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-Dates/m-p/469321#M695016</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-13T10:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-Dates/m-p/469322#M695017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert.. "Dayend" does the trick..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 11:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-Dates/m-p/469322#M695017</guid>
      <dc:creator />
      <dc:date>2013-06-13T11:24:28Z</dc:date>
    </item>
  </channel>
</rss>

