<?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 How to find the date diff between two dates in Qlikview. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-find-the-date-diff-between-two-dates-in-Qlikview/m-p/146674#M25192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume this is a chart expression and not in the script.&lt;/P&gt;&lt;P&gt;Datediff is what you would use in SQL. With the SQL function you can specify whether you want Days/Months/Years/Hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In QV you could simply "Date1 - Date1" which will use the Julian date (39827 - 39934) and give you the number of days difference. To get years difference you have to you "year(Date1) - year(Date2)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this was helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Werner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2009 14:46:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-12T14:46:41Z</dc:date>
    <item>
      <title>How to find the date diff between two dates in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-the-date-diff-between-two-dates-in-Qlikview/m-p/146673#M25191</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 have two date fields in qlikview and i want to show the diff between dates of the respective values. Is there any datediff() function or any other function to find the diff. of two dates.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 14:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-the-date-diff-between-two-dates-in-Qlikview/m-p/146673#M25191</guid>
      <dc:creator />
      <dc:date>2009-06-12T14:35:35Z</dc:date>
    </item>
    <item>
      <title>How to find the date diff between two dates in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-the-date-diff-between-two-dates-in-Qlikview/m-p/146674#M25192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume this is a chart expression and not in the script.&lt;/P&gt;&lt;P&gt;Datediff is what you would use in SQL. With the SQL function you can specify whether you want Days/Months/Years/Hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In QV you could simply "Date1 - Date1" which will use the Julian date (39827 - 39934) and give you the number of days difference. To get years difference you have to you "year(Date1) - year(Date2)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this was helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Werner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 14:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-the-date-diff-between-two-dates-in-Qlikview/m-p/146674#M25192</guid>
      <dc:creator />
      <dc:date>2009-06-12T14:46:41Z</dc:date>
    </item>
    <item>
      <title>How to find the date diff between two dates in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-the-date-diff-between-two-dates-in-Qlikview/m-p/146675#M25193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rahul&lt;/P&gt;&lt;P&gt;solution given to you bywrenback is right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 15:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-the-date-diff-between-two-dates-in-Qlikview/m-p/146675#M25193</guid>
      <dc:creator />
      <dc:date>2009-06-12T15:03:02Z</dc:date>
    </item>
    <item>
      <title>How to find the date diff between two dates in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-the-date-diff-between-two-dates-in-Qlikview/m-p/146676#M25194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Maestro this works.... &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 16:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-the-date-diff-between-two-dates-in-Qlikview/m-p/146676#M25194</guid>
      <dc:creator />
      <dc:date>2009-06-12T16:01:28Z</dc:date>
    </item>
    <item>
      <title>How to find the date diff between two dates in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-the-date-diff-between-two-dates-in-Qlikview/m-p/146677#M25195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur time.... &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 16:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-the-date-diff-between-two-dates-in-Qlikview/m-p/146677#M25195</guid>
      <dc:creator />
      <dc:date>2009-06-12T16:02:23Z</dc:date>
    </item>
    <item>
      <title>How to find the date diff between two dates in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-the-date-diff-between-two-dates-in-Qlikview/m-p/146678#M25196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm trying to find a similar datedif function, I had got as far as using julian date diffs but its not effective,&lt;/P&gt;&lt;P&gt;i.e. if you take the last day of 2009, in Julian 109365 - the last day in 2008, 108365 then your answer would be 1000, and thats not the case, there aren't 1000 days between the last day of 08 and the last day of 09.&lt;/P&gt;&lt;P&gt;How can you do it? Even when I turn them into actual dates I can't take one from the other. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 18:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-the-date-diff-between-two-dates-in-Qlikview/m-p/146678#M25196</guid>
      <dc:creator />
      <dc:date>2009-09-25T18:02:03Z</dc:date>
    </item>
    <item>
      <title>How to find the date diff between two dates in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-the-date-diff-between-two-dates-in-Qlikview/m-p/146679#M25197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that your 'dates' are being recognised as dates? For example , this little test script returns a value of 365 for 'diff' wher emy date format is dd/mm/yyyy&lt;/P&gt;&lt;P&gt;[t1]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; F1, F2&lt;BR /&gt; 31/12/2009, 31/12/2008&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;load *, F1 - F2 as diff resident t1;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 18:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-the-date-diff-between-two-dates-in-Qlikview/m-p/146679#M25197</guid>
      <dc:creator />
      <dc:date>2009-09-25T18:18:40Z</dc:date>
    </item>
  </channel>
</rss>

