<?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: Datetime should be true but returns false in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/Datetime-should-be-true-but-returns-false/m-p/2157339#M2903</link>
    <description>&lt;P&gt;Problem is that your dates are in string format and comparison wont work properly on string format.As shown in your 2nd screenshot,it is comparing 30 and 01,which is why it is showing false for 30 &amp;lt; 01.&lt;/P&gt;
&lt;P&gt;for this you have to change the format of date before comparing as shown in screenshot below.it will work perfectly.&lt;/P&gt;
&lt;P&gt;In Date Output Format use "U" instead of "d-m-Y H:i:s" in all dates you are using.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 09:19:07 GMT</pubDate>
    <dc:creator>salmankojar</dc:creator>
    <dc:date>2024-01-02T09:19:07Z</dc:date>
    <item>
      <title>Datetime should be true but returns false</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Datetime-should-be-true-but-returns-false/m-p/2143845#M2776</link>
      <description>&lt;P&gt;Goodday,&lt;/P&gt;
&lt;P&gt;I've got an automation that runs fine for the most part but at december first this automation failed.&lt;/P&gt;
&lt;P&gt;the failure was triggered by an condition block that checks an app reload time vs date and vs date - 1 day. (see 1ste screenshot)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MartW_0-1701686687851.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120967iCE978B28D073173E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MartW_0-1701686687851.png" alt="MartW_0-1701686687851.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The output of this block generated a false for the second part of the condition block. I don't understand why.&lt;/P&gt;
&lt;P&gt;especially because the day after and the day before it ran oke.&lt;/P&gt;
&lt;P&gt;The log show the following (this is the 1ste december run) see screenshot 2:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MartW_1-1701686940447.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120969i31E3E445F466ECAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MartW_1-1701686940447.png" alt="MartW_1-1701686940447.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I would think that this will be set to true.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the block's output gives a true for both 30 november and 2nd december (and after that as well)&lt;/P&gt;
&lt;P&gt;see logs (screenshot 3)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MartW_2-1701687083560.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120970i4C4747D4D6B60508/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MartW_2-1701687083560.png" alt="MartW_2-1701687083560.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what can be the cause of this, how can I fix this? because I assume that this will error on 1st of januari 2024 as well and every 1ste of the month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 11:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Datetime-should-be-true-but-returns-false/m-p/2143845#M2776</guid>
      <dc:creator>MartW</dc:creator>
      <dc:date>2023-12-04T11:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime should be true but returns false</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Datetime-should-be-true-but-returns-false/m-p/2157339#M2903</link>
      <description>&lt;P&gt;Problem is that your dates are in string format and comparison wont work properly on string format.As shown in your 2nd screenshot,it is comparing 30 and 01,which is why it is showing false for 30 &amp;lt; 01.&lt;/P&gt;
&lt;P&gt;for this you have to change the format of date before comparing as shown in screenshot below.it will work perfectly.&lt;/P&gt;
&lt;P&gt;In Date Output Format use "U" instead of "d-m-Y H:i:s" in all dates you are using.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 09:19:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Datetime-should-be-true-but-returns-false/m-p/2157339#M2903</guid>
      <dc:creator>salmankojar</dc:creator>
      <dc:date>2024-01-02T09:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime should be true but returns false</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Datetime-should-be-true-but-returns-false/m-p/2157390#M2904</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/225728"&gt;@salmankojar&lt;/a&gt;&amp;nbsp;thx, this works. might be a handy thing to know from now on haha.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 10:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Datetime-should-be-true-but-returns-false/m-p/2157390#M2904</guid>
      <dc:creator>MartW</dc:creator>
      <dc:date>2024-01-02T10:48:58Z</dc:date>
    </item>
  </channel>
</rss>

