<?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 Compare Dates in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Compare-Dates/m-p/2335322#M103899</link>
    <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to compare the current_date with the dates below to check if it is more than 80 years or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1845-03-05 =&amp;gt;yes&lt;/P&gt;&lt;P&gt;1735-01-30 &lt;/P&gt;&lt;P&gt;=&amp;gt;yes&lt;/P&gt;&lt;P&gt;2023-03-03 &lt;/P&gt;&lt;P&gt;=&amp;gt;no&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to do that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:19:42 GMT</pubDate>
    <dc:creator>RA6</dc:creator>
    <dc:date>2024-11-16T00:19:42Z</dc:date>
    <item>
      <title>Compare Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-Dates/m-p/2335322#M103899</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to compare the current_date with the dates below to check if it is more than 80 years or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1845-03-05 =&amp;gt;yes&lt;/P&gt;&lt;P&gt;1735-01-30 &lt;/P&gt;&lt;P&gt;=&amp;gt;yes&lt;/P&gt;&lt;P&gt;2023-03-03 &lt;/P&gt;&lt;P&gt;=&amp;gt;no&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to do that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-Dates/m-p/2335322#M103899</guid>
      <dc:creator>RA6</dc:creator>
      <dc:date>2024-11-16T00:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-Dates/m-p/2335323#M103900</link>
      <description>&lt;P&gt;hi Duke, you can use Java.Time Library :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import java.time.LocalDate;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LocalDate start = LocalDate.of( 1845 , 3 , 5 ) ;&lt;/P&gt;&lt;P&gt;LocalDate stop = LocalDate.now();&lt;/P&gt;&lt;P&gt;long years = java.time.temporal.ChronoUnit.YEARS.between( start , stop );&lt;/P&gt;&lt;P&gt;if(years &amp;gt; 80)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;here the result you want&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Send me Love and Kudos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 06:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-Dates/m-p/2335323#M103900</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-04-02T06:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-Dates/m-p/2335324#M103901</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;You can use the built-in function TalendDate.diffDate(Date date1, Date date2, String dateType) to get the difference between two dates, for more details about this function, go to Respository--&amp;gt;Code--&amp;gt;System--&amp;gt;TalendDate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 04:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-Dates/m-p/2335324#M103901</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-06T04:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-Dates/m-p/2335325#M103902</link>
      <description>&lt;P&gt;Even Better if you use the TalendDate library&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 06:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-Dates/m-p/2335325#M103902</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-04-06T06:41:31Z</dc:date>
    </item>
  </channel>
</rss>

