<?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 substract a date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-substract-a-date/m-p/1522408#M748858</link>
    <description>&lt;DIV class="topic-subject-wrapper"&gt;&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;&lt;DIV class="MessageSubject"&gt;&lt;DIV class="MessageSubjectIcons "&gt;&lt;DIV class="lia-message-subject"&gt;how to substract a date&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body lia-component-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;hi guys, i want to ask how to substract a date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example,&amp;nbsp;&lt;BR /&gt;payment date = 12/12/18&amp;nbsp;&lt;/P&gt;&lt;P&gt;invoice date =&amp;nbsp; 12/10/18&lt;/P&gt;&lt;P&gt;-i need&amp;nbsp;an interval value between the date.&lt;/P&gt;&lt;P&gt;-in that case we already know, the difference is 2.&lt;/P&gt;&lt;P&gt;[payment date]-[invoice date],&lt;/P&gt;&lt;P&gt;but how to get the value??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>davinfrost</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>how to substract a date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-substract-a-date/m-p/1522408#M748858</link>
      <description>&lt;DIV class="topic-subject-wrapper"&gt;&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;&lt;DIV class="MessageSubject"&gt;&lt;DIV class="MessageSubjectIcons "&gt;&lt;DIV class="lia-message-subject"&gt;how to substract a date&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body lia-component-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;hi guys, i want to ask how to substract a date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example,&amp;nbsp;&lt;BR /&gt;payment date = 12/12/18&amp;nbsp;&lt;/P&gt;&lt;P&gt;invoice date =&amp;nbsp; 12/10/18&lt;/P&gt;&lt;P&gt;-i need&amp;nbsp;an interval value between the date.&lt;/P&gt;&lt;P&gt;-in that case we already know, the difference is 2.&lt;/P&gt;&lt;P&gt;[payment date]-[invoice date],&lt;/P&gt;&lt;P&gt;but how to get the value??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-substract-a-date/m-p/1522408#M748858</guid>
      <dc:creator>davinfrost</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to substract a date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-substract-a-date/m-p/1522411#M748859</link>
      <description>Hi Davinfrost,&lt;BR /&gt;I think you can do it directly.&lt;BR /&gt;Use: [payment date]-[invoice date] in your expression or script&lt;BR /&gt;&lt;BR /&gt;Aiolos</description>
      <pubDate>Wed, 19 Dec 2018 06:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-substract-a-date/m-p/1522411#M748859</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2018-12-19T06:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to substract a date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-substract-a-date/m-p/1522417#M748860</link>
      <description>&lt;P&gt;Hi, try&lt;/P&gt;&lt;P&gt;Interval(Date([payment date],'MM/DD/YY') - Date([invoice date],'MM/DD/YY'),'D')&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 07:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-substract-a-date/m-p/1522417#M748860</guid>
      <dc:creator>phillipmacd</dc:creator>
      <dc:date>2018-12-19T07:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to substract a date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-substract-a-date/m-p/1522418#M748861</link>
      <description>&lt;P&gt;If your date fields are really dates, i.e , number at the back end. You could get the difference in days like:&lt;/P&gt;&lt;PRE&gt;Interval([payment date]-[invoice date], 'D')&lt;/PRE&gt;&lt;P&gt;Also subtracting one from another (like Aiolos showed above.) could give you the right number if your date fields don't have timestamp component.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 07:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-substract-a-date/m-p/1522418#M748861</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-12-19T07:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to substract a date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-substract-a-date/m-p/1522444#M748862</link>
      <description>&lt;P&gt;i convert dates into floor in backend and then use it for finding difference if i dont need to worry about timestamps.&lt;/P&gt;&lt;P&gt;else you can use below format&lt;/P&gt;&lt;P&gt;interval(EndDate -&amp;nbsp; StartDate,'D hh:mm')&lt;/P&gt;&lt;P&gt;gives output in Day hrs and minute if you have timestamp.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 08:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-substract-a-date/m-p/1522444#M748862</guid>
      <dc:creator>fallenangel6</dc:creator>
      <dc:date>2018-12-19T08:25:07Z</dc:date>
    </item>
  </channel>
</rss>

