<?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 two dates in Hours,Days, Months and years in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-in-Hours-Days-Months-and-years/m-p/464311#M173419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have a requirement to find the difference between two dates in Hours,Days, Months and years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Fop example : order_date 10/01/2012 , Ship_Date 10/12/2012. What i would like to do is Ship_Date - order_date = 12 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I could do this in expresion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;Aji Paul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2012 20:54:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-29T20:54:23Z</dc:date>
    <item>
      <title>Difference between two dates in Hours,Days, Months and years</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-in-Hours-Days-Months-and-years/m-p/464311#M173419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have a requirement to find the difference between two dates in Hours,Days, Months and years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Fop example : order_date 10/01/2012 , Ship_Date 10/12/2012. What i would like to do is Ship_Date - order_date = 12 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I could do this in expresion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;Aji Paul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 20:54:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-in-Hours-Days-Months-and-years/m-p/464311#M173419</guid>
      <dc:creator />
      <dc:date>2012-10-29T20:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two dates in Hours,Days, Months and years</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-in-Hours-Days-Months-and-years/m-p/464312#M173420</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Interval(ShipDate-OrderDate,'d hhmm:ss') for day difference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Year:&lt;/P&gt;&lt;P&gt;=Year(ShipDate) - Year(OrderDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 21:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-in-Hours-Days-Months-and-years/m-p/464312#M173420</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-10-29T21:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two dates in Hours,Days, Months and years</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-in-Hours-Days-Months-and-years/m-p/464313#M173421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Aji,&lt;/P&gt;&lt;P&gt;Use this Code It's Work Fine&lt;/P&gt;&lt;P&gt;Floor(Interval(order_date-Ship_Date,'DD')) -&amp;gt; For Days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Floor(Interval(order_date-Ship_Date,'D HH:MM:SS'))-&amp;gt;For Days With TimeStamp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 06:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-in-Hours-Days-Months-and-years/m-p/464313#M173421</guid>
      <dc:creator>arjunkrishnan</dc:creator>
      <dc:date>2014-04-07T06:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two dates in Hours,Days, Months and years</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-in-Hours-Days-Months-and-years/m-p/464314#M173422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Interval(Date(ShipDate,'DD/MM/YYYY hh:mm:ss')-Date(OrderDate,'DD/MM/YYYY hh:mm:ss'),'DD/MM/YYYY hh:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: These are your&lt;/P&gt;&lt;P&gt;order_date 10/01/2012&amp;nbsp; and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Ship_Date 10/12/2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result as per the given expression : 11/00/0000 00:00:00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 07:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-dates-in-Hours-Days-Months-and-years/m-p/464314#M173422</guid>
      <dc:creator />
      <dc:date>2014-04-07T07:05:29Z</dc:date>
    </item>
  </channel>
</rss>

