<?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 2 dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/149925#M28027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if you need the fraction of months between, it's even MORE complicated. I know I wrote it before, but I don't think I saved it, and it was before they changed the forums.&lt;/P&gt;&lt;P&gt;If I remember, the expression had three parts. One to compute the days from the first day to the end of its month, then divide by the number of days in its month. One to compute the whole months between the months of the dates. And one to compute the days from the last day to the start of its month and divide by the days . Something along those lines. I can probably throw it together if that isn't enough of a hint. I don't think it required any tweaks for the two days in one month, but you'd want to test that the expression still worked for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2009 02:17:42 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2009-07-22T02:17:42Z</dc:date>
    <item>
      <title>Difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/149923#M28025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;How do you compute the difference between two date to get an answer in days or months ?&lt;/P&gt;&lt;P&gt;I'm sure there is a quick function to do that but can't manage to use it ?&lt;/P&gt;&lt;P&gt;What must be the date format of the inputs ?&lt;/P&gt;&lt;P&gt;Thanks for your replies !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 23:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/149923#M28025</guid>
      <dc:creator />
      <dc:date>2009-07-21T23:19:16Z</dc:date>
    </item>
    <item>
      <title>Difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/149924#M28026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The days btwn is pretty easy. Just date2-date1. The months btwn is a little more complicated. Here is one way that I've done it: (see attached file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 01:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/149924#M28026</guid>
      <dc:creator />
      <dc:date>2009-07-22T01:44:03Z</dc:date>
    </item>
    <item>
      <title>Difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/149925#M28027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if you need the fraction of months between, it's even MORE complicated. I know I wrote it before, but I don't think I saved it, and it was before they changed the forums.&lt;/P&gt;&lt;P&gt;If I remember, the expression had three parts. One to compute the days from the first day to the end of its month, then divide by the number of days in its month. One to compute the whole months between the months of the dates. And one to compute the days from the last day to the start of its month and divide by the days . Something along those lines. I can probably throw it together if that isn't enough of a hint. I don't think it required any tweaks for the two days in one month, but you'd want to test that the expression still worked for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 02:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/149925#M28027</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-07-22T02:17:42Z</dc:date>
    </item>
    <item>
      <title>Difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/149926#M28028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;interval&lt;/P&gt;&lt;P&gt;see ref guide for interval and interval#&lt;/P&gt;&lt;P&gt;Talha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 03:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/149926#M28028</guid>
      <dc:creator />
      <dc:date>2009-07-22T03:20:29Z</dc:date>
    </item>
    <item>
      <title>Difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/149927#M28029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if you are fetching data from a sql server you can also think using datediff() sql in the load statements.&lt;/P&gt;&lt;P&gt;Luca C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 04:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/149927#M28029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-22T04:11:37Z</dc:date>
    </item>
    <item>
      <title>Difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/149928#M28030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interval function with 'dd' format is good for days. Speaking of months, it depends on the exact definitions. I had to calculate interval in months only once in my QV career, and the client wanted something very straightforward, like:&lt;BR /&gt;(number of days) / 30.5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 07:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/149928#M28030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-22T07:38:49Z</dc:date>
    </item>
  </channel>
</rss>

