<?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 TalendDateCompareDate function in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TalendDateCompareDate-function/m-p/2206975#M6818</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I do a small job to test my inputs with TalendDate.compareDate function, but i am not satisfied to result.&lt;/P&gt; 
&lt;P&gt;Find bellow screenshot of tMap and also tlogRow output.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-01-21_1448.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2VT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150465i3B3F38C99AB6EB1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2VT.png" alt="0683p000009M2VT.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;.---------+----------+--------------+--------------------+----------------------.
|                                   tLogRow_4                                   |
|=--------+----------+--------------+--------------------+---------------------=|
|ID       |SourceDate|Dateplus30days|comparetoCurrentDate|comparetoCurrentDate_2|
|=--------+----------+--------------+--------------------+---------------------=|
|SF1081014|30/11/2018|30-12-2018    |1                   |Y                     |
|SF1016028|30/11/2018|30-12-2018    |1                   |Y                     |
|SF1017008|21/12/2018|20-01-2019    |-1                  |N                     |
|SF1017109|23/11/2018|23-12-2018    |1                   |Y                     |
|SF1017148|28/11/2020|28-12-2020    |1                   |Y                     |
|SF1017159|23/11/2018|23-12-2018    |1                   |Y                     |
|SF1017197|20/12/2018|19-01-2019    |-1                  |N                     |
|SF1017228|30/11/2018|30-12-2018    |1                   |Y                     |
|SF1018052|23/11/2018|23-12-2018    |1                   |Y                     |
|SF1018187|30/11/2018|30-12-2018    |1                   |Y                     |
|SF1018239|30/11/2018|30-12-2018    |1                   |Y                     |
'---------+----------+--------------+--------------------+----------------------'&lt;/PRE&gt; 
&lt;P&gt;Culumns : &lt;STRONG&gt;ID&lt;/STRONG&gt;, &lt;STRONG&gt;SourceDate&lt;/STRONG&gt;,&amp;nbsp;&lt;STRONG&gt;Dateplus30days&lt;/STRONG&gt; are correct&lt;/P&gt; 
&lt;P&gt;But i don't why column&amp;nbsp;&lt;STRONG&gt;comparetoCurrentDate &lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;comparetoCurrentDate_2&amp;nbsp;&lt;/STRONG&gt;are not correct&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;These are my expressions:&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;comparetoCurrentDate&lt;/STRONG&gt;&lt;/P&gt; 
&lt;PRE&gt;TalendDate.compareDate(TalendDate.addDate(row2.SourceDate,30,"dd") , TalendDate.getCurrentDate() , "dd/MM/yyyy" )&lt;/PRE&gt; 
&lt;P&gt;&lt;STRONG&gt;comparetoCurrentDate_2&lt;/STRONG&gt;&lt;/P&gt; 
&lt;PRE&gt;row2.SourceDate != null &amp;amp;&amp;amp;  TalendDate.compareDate(TalendDate.addDate(row2.SourceDate,30,"dd") , TalendDate.getCurrentDate()  , "dd/MM/yyyy" ) &amp;lt; 0 ? "N" : "Y" &lt;/PRE&gt; 
&lt;P&gt;May somebody explain why or what wrong&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you in advanced&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:48:07 GMT</pubDate>
    <dc:creator>idembel2</dc:creator>
    <dc:date>2024-11-16T06:48:07Z</dc:date>
    <item>
      <title>TalendDateCompareDate function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDateCompareDate-function/m-p/2206975#M6818</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I do a small job to test my inputs with TalendDate.compareDate function, but i am not satisfied to result.&lt;/P&gt; 
&lt;P&gt;Find bellow screenshot of tMap and also tlogRow output.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-01-21_1448.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2VT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150465i3B3F38C99AB6EB1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2VT.png" alt="0683p000009M2VT.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;.---------+----------+--------------+--------------------+----------------------.
|                                   tLogRow_4                                   |
|=--------+----------+--------------+--------------------+---------------------=|
|ID       |SourceDate|Dateplus30days|comparetoCurrentDate|comparetoCurrentDate_2|
|=--------+----------+--------------+--------------------+---------------------=|
|SF1081014|30/11/2018|30-12-2018    |1                   |Y                     |
|SF1016028|30/11/2018|30-12-2018    |1                   |Y                     |
|SF1017008|21/12/2018|20-01-2019    |-1                  |N                     |
|SF1017109|23/11/2018|23-12-2018    |1                   |Y                     |
|SF1017148|28/11/2020|28-12-2020    |1                   |Y                     |
|SF1017159|23/11/2018|23-12-2018    |1                   |Y                     |
|SF1017197|20/12/2018|19-01-2019    |-1                  |N                     |
|SF1017228|30/11/2018|30-12-2018    |1                   |Y                     |
|SF1018052|23/11/2018|23-12-2018    |1                   |Y                     |
|SF1018187|30/11/2018|30-12-2018    |1                   |Y                     |
|SF1018239|30/11/2018|30-12-2018    |1                   |Y                     |
'---------+----------+--------------+--------------------+----------------------'&lt;/PRE&gt; 
&lt;P&gt;Culumns : &lt;STRONG&gt;ID&lt;/STRONG&gt;, &lt;STRONG&gt;SourceDate&lt;/STRONG&gt;,&amp;nbsp;&lt;STRONG&gt;Dateplus30days&lt;/STRONG&gt; are correct&lt;/P&gt; 
&lt;P&gt;But i don't why column&amp;nbsp;&lt;STRONG&gt;comparetoCurrentDate &lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;comparetoCurrentDate_2&amp;nbsp;&lt;/STRONG&gt;are not correct&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;These are my expressions:&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;comparetoCurrentDate&lt;/STRONG&gt;&lt;/P&gt; 
&lt;PRE&gt;TalendDate.compareDate(TalendDate.addDate(row2.SourceDate,30,"dd") , TalendDate.getCurrentDate() , "dd/MM/yyyy" )&lt;/PRE&gt; 
&lt;P&gt;&lt;STRONG&gt;comparetoCurrentDate_2&lt;/STRONG&gt;&lt;/P&gt; 
&lt;PRE&gt;row2.SourceDate != null &amp;amp;&amp;amp;  TalendDate.compareDate(TalendDate.addDate(row2.SourceDate,30,"dd") , TalendDate.getCurrentDate()  , "dd/MM/yyyy" ) &amp;lt; 0 ? "N" : "Y" &lt;/PRE&gt; 
&lt;P&gt;May somebody explain why or what wrong&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you in advanced&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDateCompareDate-function/m-p/2206975#M6818</guid>
      <dc:creator>idembel2</dc:creator>
      <dc:date>2024-11-16T06:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: TalendDateCompareDate function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDateCompareDate-function/m-p/2206976#M6819</link>
      <description>TalendDate.compareDate with Pattern does the string comparison of Date. It is recommended to use it only one part of date like Date or Month Or Year etc. 
&lt;BR /&gt; 
&lt;BR /&gt;Otherwise you can do this w/o Pattern or convert your Date format before passed to the function. like 
&lt;BR /&gt;TalendDate.compareDate(TalendDate.addDate(row2.SourceDate,30,"dd") , TalendDate.getDate("dd/MM/yyyy" )) 
&lt;BR /&gt; 
&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jan 2019 15:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDateCompareDate-function/m-p/2206976#M6819</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-01-21T15:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: TalendDateCompareDate function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDateCompareDate-function/m-p/2206977#M6820</link>
      <description>&lt;P&gt;Hi akular2301,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply, i implement it and it works.&lt;/P&gt;
&lt;P&gt;Bellow my expression&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;TalendDate.compareDate(TalendDate.addDate(row2.SourceDate,30,"dd") , TalendDate.parseDate("dd/MM/yyyy",TalendDate.getDate("dd/MM/yyyy")))&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Jan 2019 16:17:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDateCompareDate-function/m-p/2206977#M6820</guid>
      <dc:creator>idembel2</dc:creator>
      <dc:date>2019-01-21T16:17:27Z</dc:date>
    </item>
  </channel>
</rss>

