<?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 Filter - comparing 2 dates columns in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TMAP-Filter-comparing-2-dates-columns/m-p/2268641#M47134</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; The condition&amp;nbsp;&lt;SPAN&gt;TalendDate.compareDate(row1.TRADE_DATE,row1.EXPIRY,"dd-MM-yyyy") != 0 will output the value in the form of Boolean (true or false) since you are checking a condition.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; So the output of the above condition should be mapped to a boolean variable. Similarly, your input data should be in date format and not in String. I believe one of your input data is a date value in String format. So you will have to first convert the data to Date data type using ParseDate function.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; If your data types are correct, you will get output as shown below.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7MN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147869i66AD0FAD6A3DE1AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7MN.png" alt="0683p000009M7MN.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 851px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7Vn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130086i58600493D6E11CEE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7Vn.png" alt="0683p000009M7Vn.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2019 16:24:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-30T16:24:15Z</dc:date>
    <item>
      <title>TMAP Filter - comparing 2 dates columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMAP-Filter-comparing-2-dates-columns/m-p/2268639#M47132</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am very new and would like to ask a simple question.&lt;/P&gt; 
&lt;P&gt;There is a function in TMap that allows me to compare 2 dates. My goal is to remove&amp;nbsp;the rows where the 2 dates are the same.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The 2 rows i am comparing are TRADE_DATE and EXPIRY&lt;BR /&gt;&lt;BR /&gt;TalendDate.compareDate(row1.TRADE_DATE,row1.EXPIRY,"dd-MM-yyyy") != 0&lt;/P&gt; 
&lt;P&gt;The 2 data inputs are are date data types.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When i run this, i get an error "Type mismatch: Cannot convert from date to string&lt;BR /&gt;&lt;BR /&gt;Please help&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 09:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMAP-Filter-comparing-2-dates-columns/m-p/2268639#M47132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-30T09:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: TMAP Filter - comparing 2 dates columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMAP-Filter-comparing-2-dates-columns/m-p/2268640#M47133</link>
      <description>Can you share your tMap with schemas?</description>
      <pubDate>Mon, 30 Sep 2019 09:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMAP-Filter-comparing-2-dates-columns/m-p/2268640#M47133</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-09-30T09:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: TMAP Filter - comparing 2 dates columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMAP-Filter-comparing-2-dates-columns/m-p/2268641#M47134</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; The condition&amp;nbsp;&lt;SPAN&gt;TalendDate.compareDate(row1.TRADE_DATE,row1.EXPIRY,"dd-MM-yyyy") != 0 will output the value in the form of Boolean (true or false) since you are checking a condition.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; So the output of the above condition should be mapped to a boolean variable. Similarly, your input data should be in date format and not in String. I believe one of your input data is a date value in String format. So you will have to first convert the data to Date data type using ParseDate function.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; If your data types are correct, you will get output as shown below.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7MN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147869i66AD0FAD6A3DE1AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7MN.png" alt="0683p000009M7MN.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 851px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7Vn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130086i58600493D6E11CEE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7Vn.png" alt="0683p000009M7Vn.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 16:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMAP-Filter-comparing-2-dates-columns/m-p/2268641#M47134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-30T16:24:15Z</dc:date>
    </item>
  </channel>
</rss>

