<?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: Dates do not substract in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dates-do-not-substract/m-p/1664903#M50024</link>
    <description>&lt;P&gt;The dates are probably not being recognised by QS, so they are loaded as strings. Give QS a little help in the load script using:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;LOAD ...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Date#(azFinishResolved, 'dd/MM/yyyy hh:mm:ss') as azFinishResolved,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Date#(azInicioAlerStart, 'dd/MM/yyyy hh:mm:ss') as azInicioAlerStart,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Now you should be able to perform date arithmetic on these fields.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2020 07:22:36 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2020-01-13T07:22:36Z</dc:date>
    <item>
      <title>Dates do not substract</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-do-not-substract/m-p/1664889#M50022</link>
      <description>&lt;P&gt;Hi community, I have this line to subtract dates, but the result cell shows empty. No error shows when I run the script. What am I doing wrong? I also have other conditions "=" equal to something and does not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table result:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;azTienePending&lt;/TD&gt;&lt;TD&gt;azFinishResolved&lt;/TD&gt;&lt;TD&gt;azInicioAlerStart&lt;/TD&gt;&lt;TD&gt;StatusHistory.Pending.Time&lt;/TD&gt;&lt;TD&gt;azTTRMA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;12/11/2019 18:04:36&lt;/TD&gt;&lt;TD&gt;1/11/2019 0:00:02&lt;/TD&gt;&lt;TD&gt;1/11/2019 2:07:23&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;,if([azTienePending]=1&lt;/P&gt;&lt;P&gt;, [azFinishResolved]-[azInicioAlerStart]&lt;/P&gt;&lt;P&gt;, [StatusHistory.Pending.Time]-[azInicioAlerStart])&lt;/P&gt;&lt;P&gt;as [azTTRMA]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Attached qvd, qvf and excel. The script is in the loadeditor "seccion 7"&lt;/P&gt;&lt;P&gt;//&lt;A href="https://drive.google.com/drive/folders/1wkqCzePm-itLFrU-6-Dx0OeL-UrhcMHy?usp=sharing" target="_blank"&gt;https://drive.google.com/drive/folders/1wkqCzePm-itLFrU-6-Dx0OeL-UrhcMHy?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-do-not-substract/m-p/1664889#M50022</guid>
      <dc:creator>davemontoya</dc:creator>
      <dc:date>2021-12-20T21:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dates do not substract</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-do-not-substract/m-p/1664903#M50024</link>
      <description>&lt;P&gt;The dates are probably not being recognised by QS, so they are loaded as strings. Give QS a little help in the load script using:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;LOAD ...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Date#(azFinishResolved, 'dd/MM/yyyy hh:mm:ss') as azFinishResolved,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Date#(azInicioAlerStart, 'dd/MM/yyyy hh:mm:ss') as azInicioAlerStart,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Now you should be able to perform date arithmetic on these fields.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 07:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-do-not-substract/m-p/1664903#M50024</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2020-01-13T07:22:36Z</dc:date>
    </item>
  </channel>
</rss>

