<?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: Filter on calendar date in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Filter-on-calendar-date/m-p/2360738#M125267</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; I believe you are looking for this solution.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 907px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5Xb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140816i244E5D5100070D37/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5Xb.png" alt="0683p000009M5Xb.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The first step you will have to do is to read your input column in date format itself (in "yyyyMMdd") instead of String. In the tMap, you will have to add the following condition.&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="0683p000009M5L7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145979i90E852994DE1259F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5L7.png" alt="0683p000009M5L7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;TalendDate.diffDate(TalendDate.getCurrentDate(),row2.DATE_ARRIVAL,"MM") &amp;gt;=3&lt;/PRE&gt; 
&lt;P&gt;Hope you are happy with the solution. Please spare a second to mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Kudos will be a bonus!&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;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2019 16:44:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-06-10T16:44:06Z</dc:date>
    <item>
      <title>Filter on calendar date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-on-calendar-date/m-p/2360736#M125265</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been struggling for days on this filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to filter data that's 3 months older than the extraction date. For example, if my product arrived on the 10-03-2019 (column DATE_ARRIVAL, its formatted yyyyMMdd), I dont want it to appear in my extracted file after the 10-06-2019.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried to use a long type filter: TalendDate.diffDate(TalendDate.parseDate("yyyyMMdd",TalendDate.getDate("CCYYMMDD")),DATE_ARRIVAL,"MM") &amp;lt; 3 but it filters out all products arrived in june.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be grateful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 10:39:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-on-calendar-date/m-p/2360736#M125265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-10T10:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on calendar date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-on-calendar-date/m-p/2360737#M125266</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPMCAA4"&gt;@mbocquet&lt;/A&gt;&amp;nbsp;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Could you please elaborate more on your issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Bharath.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Kudos are accepted if this gave you the solution.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 13:22:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-on-calendar-date/m-p/2360737#M125266</guid>
      <dc:creator>javvaji</dc:creator>
      <dc:date>2019-06-10T13:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on calendar date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-on-calendar-date/m-p/2360738#M125267</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; I believe you are looking for this solution.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 907px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5Xb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140816i244E5D5100070D37/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5Xb.png" alt="0683p000009M5Xb.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The first step you will have to do is to read your input column in date format itself (in "yyyyMMdd") instead of String. In the tMap, you will have to add the following condition.&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="0683p000009M5L7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145979i90E852994DE1259F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5L7.png" alt="0683p000009M5L7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;TalendDate.diffDate(TalendDate.getCurrentDate(),row2.DATE_ARRIVAL,"MM") &amp;gt;=3&lt;/PRE&gt; 
&lt;P&gt;Hope you are happy with the solution. Please spare a second to mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Kudos will be a bonus!&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;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 16:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-on-calendar-date/m-p/2360738#M125267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-10T16:44:06Z</dc:date>
    </item>
  </channel>
</rss>

