<?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 Date subtraction in talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Date-subtraction-in-talend/m-p/2377617#M139428</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;I am trying to calculate age of a product.&lt;/P&gt;&lt;P&gt;For this i need to subtract the current date from initial date (creation _date) and result should be in months.&lt;/P&gt;&lt;P&gt;Can someone help me with the logic for this ? As diffdate is not working with the string data types .&lt;/P&gt;&lt;P&gt;Please suggest​&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:18:27 GMT</pubDate>
    <dc:creator>RP1629548713</dc:creator>
    <dc:date>2024-11-15T23:18:27Z</dc:date>
    <item>
      <title>Date subtraction in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-subtraction-in-talend/m-p/2377617#M139428</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;I am trying to calculate age of a product.&lt;/P&gt;&lt;P&gt;For this i need to subtract the current date from initial date (creation _date) and result should be in months.&lt;/P&gt;&lt;P&gt;Can someone help me with the logic for this ? As diffdate is not working with the string data types .&lt;/P&gt;&lt;P&gt;Please suggest​&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:18:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-subtraction-in-talend/m-p/2377617#M139428</guid>
      <dc:creator>RP1629548713</dc:creator>
      <dc:date>2024-11-15T23:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date subtraction in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-subtraction-in-talend/m-p/2377618#M139429</link>
      <description>&lt;P&gt;Hi, if your date are in String data type you can do something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TalendDate.diffDate(TalendDate.parseDate("yyyy-MM-dd",(String of Date1)), TalendDate.parseDate("yyyy-MM-dd",(String of Date2)), "MM")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;date pattern have to correspond to the date pattern of your String eg: "yyyy-MM-dd" for 2021-12-31&lt;/P&gt;&lt;P&gt;Send me love and kudos&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 08:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-subtraction-in-talend/m-p/2377618#M139429</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-01-17T08:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date subtraction in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-subtraction-in-talend/m-p/2377619#M139430</link>
      <description>&lt;P&gt;I need to subtract it from the current date .&lt;/P&gt;&lt;P&gt;The current date - creation_date ​&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 09:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-subtraction-in-talend/m-p/2377619#M139430</guid>
      <dc:creator>RP1629548713</dc:creator>
      <dc:date>2022-01-17T09:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date subtraction in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-subtraction-in-talend/m-p/2377620#M139431</link>
      <description>&lt;P&gt;so replace TalendDate.parseDate("yyyy-MM-dd",(String of Date1)) by TalendDate.getCurrentDate()&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 10:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-subtraction-in-talend/m-p/2377620#M139431</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-01-17T10:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Date subtraction in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-subtraction-in-talend/m-p/2377621#M139432</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;​​I tried implementing it ,but I get the following error :&lt;/P&gt;&lt;P&gt;Type mismatch: cannot convert from long to String&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 12:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-subtraction-in-talend/m-p/2377621#M139432</guid>
      <dc:creator>RP1629548713</dc:creator>
      <dc:date>2022-01-18T12:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Date subtraction in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-subtraction-in-talend/m-p/2377622#M139433</link>
      <description>&lt;P&gt;Yes it's because diffDate return a Long and it seems you expect a String so :&lt;/P&gt;&lt;P&gt;String.valueOf(TalendDate.diffDate(TalendDate.getCurrentDate(), TalendDate.parseDate("yyyy-MM-dd",(String of Date2)), "MM"))&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 13:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-subtraction-in-talend/m-p/2377622#M139433</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-01-18T13:29:36Z</dc:date>
    </item>
  </channel>
</rss>

