<?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 of two dates in variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/difference-of-two-dates-in-variable/m-p/1680236#M726965</link>
    <description>&lt;P&gt;may be :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;let vInput1con= peek('Input1',0,'CONF1');          //Input1= 20191210
let vInput2con= peek('Input2',0,'CONF1');        //Input2= 20200101
let vMinDate=Date(Date#('$(vInput1con)','YYYYMMDD'),'DD/MM/YYYY');
let vMaxDate=Date(Date#('$(vInput2con)','YYYYMMDD'),'DD/MM/YYYY');

Let vdays=Interval('$(vMaxDate)'- '$(vMinDate)','D');&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 28 Feb 2020 09:11:51 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-02-28T09:11:51Z</dc:date>
    <item>
      <title>difference of two dates in variable</title>
      <link>https://community.qlik.com/t5/QlikView/difference-of-two-dates-in-variable/m-p/1680147#M726964</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have two date fields in two different variable. I want to calculate the dates difference in days. I used Interval(). but still no luck. below is my code&lt;/P&gt;&lt;P&gt;let vInput1con= peek('Input1',0,'CONF1');&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Input1=&amp;nbsp;20191210&lt;BR /&gt;let vInput2con= peek('Input2',0,'CONF1');&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;//Input2= 20200101&lt;BR /&gt;let vMinDate=Date(Date#('$(vInput1con)','YYYYMMDD'),'YYYYMMDD');&lt;BR /&gt;let vMaxDate=Date(Date#('$(vInput2con)','YYYYMMDD'),'YYYYMMDD');&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Let vdays=Interval($(vMaxDate)- $(vMinDate),'D');&lt;/P&gt;&lt;P&gt;Please help o=in finding the no. of days.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-of-two-dates-in-variable/m-p/1680147#M726964</guid>
      <dc:creator>viveksingh</dc:creator>
      <dc:date>2024-11-16T19:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: difference of two dates in variable</title>
      <link>https://community.qlik.com/t5/QlikView/difference-of-two-dates-in-variable/m-p/1680236#M726965</link>
      <description>&lt;P&gt;may be :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;let vInput1con= peek('Input1',0,'CONF1');          //Input1= 20191210
let vInput2con= peek('Input2',0,'CONF1');        //Input2= 20200101
let vMinDate=Date(Date#('$(vInput1con)','YYYYMMDD'),'DD/MM/YYYY');
let vMaxDate=Date(Date#('$(vInput2con)','YYYYMMDD'),'DD/MM/YYYY');

Let vdays=Interval('$(vMaxDate)'- '$(vMinDate)','D');&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Feb 2020 09:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-of-two-dates-in-variable/m-p/1680236#M726965</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-02-28T09:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: difference of two dates in variable</title>
      <link>https://community.qlik.com/t5/QlikView/difference-of-two-dates-in-variable/m-p/1689870#M726966</link>
      <description>&lt;P&gt;Vivek, did Taoufiq's post get you a working solution?&amp;nbsp; If so, please be sure to close out your thread by returning to it and on his post, use the Accept as Solution button to mark it which will give him credit for the help and let other Members know that worked.&amp;nbsp; If you did something different, please consider posting that and then mark it using the button after you post.&amp;nbsp; If you have further questions, please leave an update post.&amp;nbsp; It is appreciated if you close out your posts if possible.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 14:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-of-two-dates-in-variable/m-p/1689870#M726966</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-04-01T14:31:00Z</dc:date>
    </item>
  </channel>
</rss>

