<?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: tmap compare date syntax in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tmap-compare-date-syntax/m-p/2305029#M76741</link>
    <description>&lt;P&gt;Hello pawe84,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a) You opened a parenthesis after "&amp;amp;&amp;amp;", it needs a matching closing one at the end.&lt;/P&gt;&lt;P&gt;b) Within "equals", the Name SMITH needs to be in double quotation marks (not single ones), because it's a String in Java.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2022 14:24:41 GMT</pubDate>
    <dc:creator>ThWabi</dc:creator>
    <dc:date>2022-06-01T14:24:41Z</dc:date>
    <item>
      <title>tmap compare date syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-compare-date-syntax/m-p/2305028#M76740</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to compare an invoice date for an agent in tmap and if the date is less then &lt;/P&gt;&lt;P&gt;'01.06.2022' then the field qualified will be zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF AGENT_ID='SMITH' AND INV_DATE =&amp;lt; '01.06.2022'&lt;/P&gt;&lt;P&gt;THEN  QUALIFIED=0 &lt;/P&gt;&lt;P&gt;ELSE &lt;/P&gt;&lt;P&gt;QUALIFIED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this syntax correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;row1.AGENT_ID.equals('SMITH') &amp;amp;&amp;amp; (  &lt;/P&gt;TalendDate.compareDate(row1.INV_DATE,&lt;P&gt; &lt;/P&gt;TalendDate.parseDate("dd.MM.yyyy", "01.06.2022")) &amp;lt; 0 ? 0 : row1.&lt;P&gt;QUALIFIED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks for your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 09:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-compare-date-syntax/m-p/2305028#M76740</guid>
      <dc:creator>pawe84</dc:creator>
      <dc:date>2022-06-01T09:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: tmap compare date syntax</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-compare-date-syntax/m-p/2305029#M76741</link>
      <description>&lt;P&gt;Hello pawe84,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a) You opened a parenthesis after "&amp;amp;&amp;amp;", it needs a matching closing one at the end.&lt;/P&gt;&lt;P&gt;b) Within "equals", the Name SMITH needs to be in double quotation marks (not single ones), because it's a String in Java.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 14:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-compare-date-syntax/m-p/2305029#M76741</guid>
      <dc:creator>ThWabi</dc:creator>
      <dc:date>2022-06-01T14:24:41Z</dc:date>
    </item>
  </channel>
</rss>

