<?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 compareDate does not work at all in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/compareDate-does-not-work-at-all/m-p/2258647#M40386</link>
    <description>Hi, 
&lt;BR /&gt;I'm having some issues with the TalendDate.compareDate component. 
&lt;BR /&gt;I have 3 dates: 
&lt;BR /&gt;mainDate (coming from 1 flow) 
&lt;BR /&gt;date1 and date2 coming from another. 
&lt;BR /&gt;mainDate is entering a tMap from the main flow, the others date from a lookup one. 
&lt;BR /&gt;I can't match the two flows using a join, because I need to get informations based on if the mainDate is between date1 and date2. I need date1 &amp;lt;= mainDate &amp;lt; date2. 
&lt;BR /&gt;So i have my tMap like the image uploaded. 
&lt;BR /&gt;I think that Talend compare first the day, then the months and finally the year, which is an awful way to compare dates. 
&lt;BR /&gt;But maybe this is why there is a pattern, to choose how to compare, plus I saw a bug blog post saying that only the US/ENG format works, so I tried several things: 
&lt;BR /&gt;- Put "yyyy-MM-dd" into the filter, return always false which isn't true because there should have some matches 
&lt;BR /&gt;- Make 3 variables, transforming my dates into a string with the following pattern "yyyy-MM-dd" and then into a date again =&amp;gt; Return false every time. 
&lt;BR /&gt;So I will check again to see if I'm not mistaken about the matches that should be here, but in the meantime, if you have some ideas or experience this before, please help me. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9xp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153774i2D37DB4356C217DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9xp.png" alt="0683p000009M9xp.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Wed, 22 Jan 2014 12:11:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-22T12:11:29Z</dc:date>
    <item>
      <title>compareDate does not work at all</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compareDate-does-not-work-at-all/m-p/2258647#M40386</link>
      <description>Hi, 
&lt;BR /&gt;I'm having some issues with the TalendDate.compareDate component. 
&lt;BR /&gt;I have 3 dates: 
&lt;BR /&gt;mainDate (coming from 1 flow) 
&lt;BR /&gt;date1 and date2 coming from another. 
&lt;BR /&gt;mainDate is entering a tMap from the main flow, the others date from a lookup one. 
&lt;BR /&gt;I can't match the two flows using a join, because I need to get informations based on if the mainDate is between date1 and date2. I need date1 &amp;lt;= mainDate &amp;lt; date2. 
&lt;BR /&gt;So i have my tMap like the image uploaded. 
&lt;BR /&gt;I think that Talend compare first the day, then the months and finally the year, which is an awful way to compare dates. 
&lt;BR /&gt;But maybe this is why there is a pattern, to choose how to compare, plus I saw a bug blog post saying that only the US/ENG format works, so I tried several things: 
&lt;BR /&gt;- Put "yyyy-MM-dd" into the filter, return always false which isn't true because there should have some matches 
&lt;BR /&gt;- Make 3 variables, transforming my dates into a string with the following pattern "yyyy-MM-dd" and then into a date again =&amp;gt; Return false every time. 
&lt;BR /&gt;So I will check again to see if I'm not mistaken about the matches that should be here, but in the meantime, if you have some ideas or experience this before, please help me. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9xp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153774i2D37DB4356C217DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9xp.png" alt="0683p000009M9xp.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 22 Jan 2014 12:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compareDate-does-not-work-at-all/m-p/2258647#M40386</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-22T12:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: compareDate does not work at all</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compareDate-does-not-work-at-all/m-p/2258648#M40387</link>
      <description>Hello,&lt;BR /&gt;are you using the compare date function?</description>
      <pubDate>Wed, 22 Jan 2014 12:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compareDate-does-not-work-at-all/m-p/2258648#M40387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-22T12:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: compareDate does not work at all</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compareDate-does-not-work-at-all/m-p/2258649#M40388</link>
      <description>If you provide a date as String in the format ddMMyyyy yes indeed Talend compares the String starting with the first char but your idea about the way Talend compares Date objects is - please don't be angry - nonsense.&lt;BR /&gt;In a tMap the joins the both objects (main column and lookup column) will be check by the equals method of the objects. The pattern in the schema definition for date types will only be used if you convert the date implicit into a string (e.g. you print it out with tLogRow or you get a string from the source and want have it as Date).&lt;BR /&gt;It would be great to see your schema definition and you attempts to join it in the tMap.</description>
      <pubDate>Wed, 22 Jan 2014 21:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compareDate-does-not-work-at-all/m-p/2258649#M40388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-22T21:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: compareDate does not work at all</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compareDate-does-not-work-at-all/m-p/2258650#M40389</link>
      <description>Hi bbernard, 
&lt;BR /&gt;It seems you have resolved it in the Forum 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCli7CAC" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-compareDate-does-not-work-at-all/td-p/80673&lt;/A&gt;. Could you please also set the topic as resolved? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 23 Jan 2014 02:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compareDate-does-not-work-at-all/m-p/2258650#M40389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-23T02:46:26Z</dc:date>
    </item>
  </channel>
</rss>

