<?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/298936#M1193650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 date fields in the format &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;question_date eg : jun-25-2011&lt;/P&gt;&lt;P&gt;answer_date eg:&amp;nbsp;&amp;nbsp;&amp;nbsp; jul-01-2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to find the difference between 2dates , in above case 6 days ...how do i write this in an expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jul 2011 06:05:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-22T06:05:50Z</dc:date>
    <item>
      <title>Difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/298936#M1193650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 date fields in the format &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;question_date eg : jun-25-2011&lt;/P&gt;&lt;P&gt;answer_date eg:&amp;nbsp;&amp;nbsp;&amp;nbsp; jul-01-2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to find the difference between 2dates , in above case 6 days ...how do i write this in an expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 06:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/298936#M1193650</guid>
      <dc:creator />
      <dc:date>2011-07-22T06:05:50Z</dc:date>
    </item>
    <item>
      <title>Difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/298937#M1193651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have solve this problem in the script with the expression: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;answer_date - question_date AS difference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you have to try &lt;/P&gt;&lt;P&gt;num(answer_date) - num(question_date) AS difference&lt;/P&gt;&lt;P&gt;if you converted the date field into the format 'jun-25-2011'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 07:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/298937#M1193651</guid>
      <dc:creator />
      <dc:date>2011-07-22T07:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/298938#M1193652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PFA. I have used mapping function to map Month names to numeric values i.e Jan is 1, Dec is 12 . Then created the dates in M/D/YYYY format using makedate() function. You may then apply logic for subtracting the two dates as needed. Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 12:13:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-2-dates/m-p/298938#M1193652</guid>
      <dc:creator />
      <dc:date>2011-07-22T12:13:08Z</dc:date>
    </item>
  </channel>
</rss>

