<?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: Days difference between two dates. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1751943#M719185</link>
    <description>&lt;P&gt;you can try this aswell&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(timestamp#(date2,'MM/DD/YY'),'DD/MM/YYYY') as Dt2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(timestamp#(date1,'MM/DD/YY'),'DD/MM/YYYY') as Dt1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval( (date(timestamp#(date2,'MM/DD/YY'),'DD/MM/YYYY')) -&amp;nbsp;&amp;nbsp; (date(timestamp#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (date1,'MM/DD/YY'),'DD/MM/YYYY')), 'd') as DTDiff&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Just use interval function as&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Interval(Date1-Date2,'d')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2020 12:10:00 GMT</pubDate>
    <dc:creator>Chanty4u</dc:creator>
    <dc:date>2020-10-13T12:10:00Z</dc:date>
    <item>
      <title>Days difference between two dates.</title>
      <link>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1751814#M719180</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;Need help to for QV to help calculate the difference between two dates.&lt;/P&gt;&lt;P&gt;Currently i'm using "date(floor([Due Date]-[Closed Date]),'DD/MM/YYYY') as DeltaDueClosed"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issues that I'm facing,&lt;/P&gt;&lt;P&gt;1. My original data have timestamp behind, which I do not want it to calculate with the timestamp&lt;/P&gt;&lt;P&gt;2. Example Due Date = 13/10/20, Closed Date = 13/10/20.&lt;/P&gt;&lt;P&gt;The data outcome was -1, should be 0 instead..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to get the correct data?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1751814#M719180</guid>
      <dc:creator>Novelchew</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Days difference between two dates.</title>
      <link>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1751817#M719181</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127597"&gt;@Novelchew&lt;/a&gt;&amp;nbsp; like ?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;floor(timestamp#([Due Date],'DD/MM/YYYY hh:mm:ss'))-floor(timestamp#([Closed Date],'DD/MM/YYYY hh:mm:ss')) as DeltaDueClosed&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Oct 2020 07:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1751817#M719181</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-10-13T07:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Days difference between two dates.</title>
      <link>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1751824#M719182</link>
      <description>&lt;P&gt;hello!&lt;BR /&gt;Tried it and the data all became "-" &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 07:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1751824#M719182</guid>
      <dc:creator>Novelchew</dc:creator>
      <dc:date>2020-10-13T07:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Days difference between two dates.</title>
      <link>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1751831#M719183</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127597"&gt;@Novelchew&lt;/a&gt;&amp;nbsp; can you share a sample data ?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 07:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1751831#M719183</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-10-13T07:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Days difference between two dates.</title>
      <link>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1751925#M719184</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127597"&gt;@Novelchew&lt;/a&gt;&amp;nbsp; You an individually floor it and then take a difference, of course&amp;nbsp; I am assuming that your both Date fields are in proper Date or timestamp format.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;floor([Due Date])-floor([Closed Date]) as DeltaDueClosed"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 11:35:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1751925#M719184</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-13T11:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Days difference between two dates.</title>
      <link>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1751943#M719185</link>
      <description>&lt;P&gt;you can try this aswell&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(timestamp#(date2,'MM/DD/YY'),'DD/MM/YYYY') as Dt2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(timestamp#(date1,'MM/DD/YY'),'DD/MM/YYYY') as Dt1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval( (date(timestamp#(date2,'MM/DD/YY'),'DD/MM/YYYY')) -&amp;nbsp;&amp;nbsp; (date(timestamp#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (date1,'MM/DD/YY'),'DD/MM/YYYY')), 'd') as DTDiff&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Just use interval function as&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Interval(Date1-Date2,'d')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 12:10:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1751943#M719185</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2020-10-13T12:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Days difference between two dates.</title>
      <link>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1756342#M719186</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127597"&gt;@Novelchew&lt;/a&gt;&amp;nbsp;if one of the last two posts helped you resolve your issue, we would greatly appreciate you returning to the thread and closing it out by using the Accept as Solution button on the post(s) that helped.&amp;nbsp; If you did something different, you may post that and then use the button to mark it as the solution.&amp;nbsp; The posters receive credit for the help they provide by the Likes and Solutions they get marked on the Community, so it helps if you properly close things to be sure they get recognition for the assistance, and it helps others know what actually worked.k&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 15:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1756342#M719186</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-10-27T15:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Days difference between two dates.</title>
      <link>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1756898#M719187</link>
      <description>&lt;P&gt;Sorry for the late reply.&lt;/P&gt;&lt;P&gt;Thank you.. this worked and help!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 02:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-difference-between-two-dates/m-p/1756898#M719187</guid>
      <dc:creator>Novelchew</dc:creator>
      <dc:date>2020-10-29T02:27:16Z</dc:date>
    </item>
  </channel>
</rss>

