<?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: Compare two dates with the result days in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262017#M42615</link>
    <description>&lt;P&gt;The datatype of the output is string&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2019 13:55:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-25T13:55:35Z</dc:date>
    <item>
      <title>Compare two dates with the result days</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262013#M42611</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to do this in talend:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IF (delay_date &amp;gt; now()) THEN (delay_date - now()) ELSE 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;what I have done was:&lt;/P&gt;&lt;P&gt;TalendDate.compareDate(TalendDate.parseDate("yyyy-MM-dd",row1.delay_date))&amp;gt;0 ? TalendDate.diffDate(TalendDate.parseDate("yyyy-MM-dd",row1.delay_date) TalendDate.getCurrentDate(),"dd"):'0'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but is not working, returns this error:&amp;nbsp;Detail Message: The method getCurrentDate() is undefined for the type Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can help me on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262013#M42611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two dates with the result days</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262014#M42612</link>
      <description>&lt;P&gt;Now I have this:&lt;/P&gt;&lt;P&gt;TalendDate.compareDate(TalendDate.getCurrentDate(),TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",row1.delay_date))&amp;gt;0? TalendDate.diffDate(TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",row1.delay_date), TalendDate.getCurrentDate(),"dd"):'0'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but still not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 12:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262014#M42612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-25T12:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two dates with the result days</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262015#M42613</link>
      <description>&lt;P&gt;this is another try, but still no working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TalendDate.compareDate(TalendDate.getCurrentDate(),TalendDate.parseDate("yyyy-MM-dd",row1.delay_date))&amp;gt;0? TalendDate.addDate(TalendDate.parseDate("yyyy-MM-dd",row1.delay_date),"yyyy-MM-dd", -TalendDate.getCurrentDate(),"dd"):'0'&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 13:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262015#M42613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-25T13:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two dates with the result days</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262016#M42614</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPK5AAO"&gt;@esilva&lt;/A&gt;&amp;nbsp;, What is the output data type of the filed?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 13:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262016#M42614</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-09-25T13:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two dates with the result days</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262017#M42615</link>
      <description>&lt;P&gt;The datatype of the output is string&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 13:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262017#M42615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-25T13:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two dates with the result days</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262018#M42616</link>
      <description>&lt;P&gt;Another :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TalendDate.compareDate(TalendDate.getCurrentDate(),TalendDate.parseDate("yyyy-MM-dd",row1.delay_date))&amp;gt;0? String.valueOf(TalendDate.diffDate(TalendDate.parseDate("yyyy-MM-dd",row1.delay_date),TalendDate.getCurrentDate(),"dd")):'0'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not working also, But I think i'm close&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 14:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262018#M42616</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-25T14:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two dates with the result days</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262019#M42617</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;What is the business objective you are trying to achieve? Could you please explain with 1-2 sample input records and expected output records?&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>Wed, 25 Sep 2019 18:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262019#M42617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-25T18:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two dates with the result days</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262020#M42618</link>
      <description>&lt;P&gt;The specification has changed.&lt;/P&gt; 
&lt;P&gt;Thanks.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;now I have to validate this:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;If this value is &amp;lt;0 then '00'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if this value &amp;gt; 99 then '99'&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;then value&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;but the value is a string.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;what I have is:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;(Integer.parseInt(row1.value)&amp;lt;0)?'00'&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;(Integer.parseInt(row1.value)&amp;gt;99)?'99':row1.value)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;but is not working.&amp;nbsp;&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>Thu, 26 Sep 2019 11:47:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262020#M42618</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-26T11:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two dates with the result days</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262021#M42619</link>
      <description>&lt;P&gt;I have changed the single quotes to double quotes and it works.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;(Integer.parseInt(row1.delay_date)&amp;lt;0)?"00":&lt;BR /&gt;((Integer.parseInt(row1.delay_date)&amp;gt;99)?"99":row1.delay_date)&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 12:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262021#M42619</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-26T12:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two dates with the result days</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262022#M42620</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPK5AAO"&gt;@esilva&lt;/A&gt;&amp;nbsp;,try the below one is working for me that.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;row1.newColumn==null || row1.newColumn.equals("")?null &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;Integer.parseInt(row1.newColumn )&amp;lt;0?"00"&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;Integer.parseInt(row1.newColumn )&amp;gt;99?"99":row1.newColumn))&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 12:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-two-dates-with-the-result-days/m-p/2262022#M42620</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-09-26T12:22:31Z</dc:date>
    </item>
  </channel>
</rss>

