<?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 Less than Date comparison expression in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TMAP-Less-than-Date-comparison-expression/m-p/2363437#M127322</link>
    <description>&lt;P&gt;Try this one:&lt;/P&gt;&lt;PRE&gt;row5.DATE_OF_BIRTH == null || 
TalendDate.compareDate(row5.DATE_OF_BIRTH, 
       TalendDate.parseDate("dd-MM-yyyy", "01-01-1990", "dd-MM-yyyy")) &amp;lt; 0 ? null : row5.DATE_OF_BIRTH &lt;/PRE&gt;</description>
    <pubDate>Thu, 15 Feb 2018 11:43:20 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2018-02-15T11:43:20Z</dc:date>
    <item>
      <title>TMAP Less than Date comparison expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMAP-Less-than-Date-comparison-expression/m-p/2363432#M127317</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column from an input file row5.DATE_OF_BIRTH with the date pattern set as:&amp;nbsp;"dd-MM-yyyy"&lt;/P&gt;&lt;P&gt;The output column has also the same date pattern set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to compare the date from&amp;nbsp;&lt;SPAN&gt;row5.DATE_OF_BIRTH to 01-01-1900.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If it is&amp;nbsp;less than "01-01-1990" or null, I want to null the output value, else I want to use the date in&amp;nbsp;row5.DATE_OF_BIRTH.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please could you help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;K&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 10:47:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMAP-Less-than-Date-comparison-expression/m-p/2363432#M127317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-15T10:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: TMAP Less than Date comparison expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMAP-Less-than-Date-comparison-expression/m-p/2363433#M127318</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Should work with something like that:&lt;/P&gt;&lt;PRE&gt;row5.DATE_OF_BIRTH == null || 
TalendDate.compareDate(row5.DATE_OF_BIRTH, &lt;BR /&gt;       TalendDate.parseDate("dd-MM-yyyy", "01-01-2010", "dd-MM-yyyy)) &amp;lt; 0) ? null : row5.DATE_OF_BIRTH &lt;/PRE&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 10:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMAP-Less-than-Date-comparison-expression/m-p/2363433#M127318</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-15T10:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: TMAP Less than Date comparison expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMAP-Less-than-Date-comparison-expression/m-p/2363434#M127319</link>
      <description>&lt;P&gt;Thanks for the response,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this doesn't seem to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also added double quotes to dd-MM-yyyy.&lt;/P&gt;&lt;P&gt;I get an error (object is not an instance of declaring class)&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 11:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMAP-Less-than-Date-comparison-expression/m-p/2363434#M127319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-15T11:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: TMAP Less than Date comparison expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMAP-Less-than-Date-comparison-expression/m-p/2363435#M127320</link>
      <description>&lt;P&gt;You're right, the correct syntax is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;row5.DATE_OF_BIRTH == null || 
TalendDate.compareDate(row5.DATE_OF_BIRTH, 
       TalendDate.parseDate("dd-MM-yyyy", "01-01-1990", "dd-MM-yyyy")) &amp;lt; 0) ? null : row5.DATE_OF_BIRTH &lt;/PRE&gt;&lt;P&gt;Can you share your tMap with the schemas?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 11:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMAP-Less-than-Date-comparison-expression/m-p/2363435#M127320</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-15T11:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: TMAP Less than Date comparison expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMAP-Less-than-Date-comparison-expression/m-p/2363436#M127321</link>
      <description>&lt;P&gt;please see attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrRS"&gt;MAP.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrpP"&gt;input.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrzS"&gt;output.PNG&lt;/A&gt;</description>
      <pubDate>Thu, 15 Feb 2018 11:27:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMAP-Less-than-Date-comparison-expression/m-p/2363436#M127321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-15T11:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: TMAP Less than Date comparison expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMAP-Less-than-Date-comparison-expression/m-p/2363437#M127322</link>
      <description>&lt;P&gt;Try this one:&lt;/P&gt;&lt;PRE&gt;row5.DATE_OF_BIRTH == null || 
TalendDate.compareDate(row5.DATE_OF_BIRTH, 
       TalendDate.parseDate("dd-MM-yyyy", "01-01-1990", "dd-MM-yyyy")) &amp;lt; 0 ? null : row5.DATE_OF_BIRTH &lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Feb 2018 11:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMAP-Less-than-Date-comparison-expression/m-p/2363437#M127322</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-15T11:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: TMAP Less than Date comparison expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMAP-Less-than-Date-comparison-expression/m-p/2363438#M127323</link>
      <description>&lt;P&gt;This worked .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had to remove the final &amp;nbsp; "dd-MM-yyyy" from TalendDate.parseDate("dd-MM-yyyy", "01-01-1990", "dd-MM-yyyy")) to make it work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you happen to know how i can limit the output of a row to 50chars even though the input may be 300charrs?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 11:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMAP-Less-than-Date-comparison-expression/m-p/2363438#M127323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-15T11:56:40Z</dc:date>
    </item>
  </channel>
</rss>

