<?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 Difference between dates from different month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-dates-from-different-month/m-p/344692#M127368</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 have a question that maybe you know the answer. I have to substract two different dates but each of those belongs to different months. For example this code &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;equivalent to this code in c#&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; DateTime dt1 = new DateTime(2012, 05, 07);&amp;nbsp; //YYYY/MM/DD&lt;/P&gt;&lt;P&gt; DateTime dt2 = new DateTime(2012, 03, 06);&lt;/P&gt;&lt;P&gt; int days = (dt2 - dt1).Days; // 62 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somebody know the trick?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2012 15:06:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-09T15:06:09Z</dc:date>
    <item>
      <title>Difference between dates from different month</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates-from-different-month/m-p/344692#M127368</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 have a question that maybe you know the answer. I have to substract two different dates but each of those belongs to different months. For example this code &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;equivalent to this code in c#&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; DateTime dt1 = new DateTime(2012, 05, 07);&amp;nbsp; //YYYY/MM/DD&lt;/P&gt;&lt;P&gt; DateTime dt2 = new DateTime(2012, 03, 06);&lt;/P&gt;&lt;P&gt; int days = (dt2 - dt1).Days; // 62 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somebody know the trick?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 15:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates-from-different-month/m-p/344692#M127368</guid>
      <dc:creator />
      <dc:date>2012-05-09T15:06:09Z</dc:date>
    </item>
    <item>
      <title>Difference between dates from different month</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates-from-different-month/m-p/344693#M127369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Try using the Interval function - Interval(DateTime1 - DateTime2). Just be aware that it is a date and time interval so for just days difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 15:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates-from-different-month/m-p/344693#M127369</guid>
      <dc:creator />
      <dc:date>2012-05-09T15:11:18Z</dc:date>
    </item>
    <item>
      <title>Difference between dates from different month</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates-from-different-month/m-p/344694#M127370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I,ve tried creating a variable with makedate(2012,02,02) and the result of Today()-$(vDate) is 97.&lt;/P&gt;&lt;P&gt;You must be sure that the type of the dates is the same for both of them and it must work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 15:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates-from-different-month/m-p/344694#M127370</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-05-09T15:15:13Z</dc:date>
    </item>
  </channel>
</rss>

