<?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: [resolved] DateDiff troubles in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-DateDiff-troubles/m-p/2294446#M67328</link>
    <description>I found a solution, but not really an explanation !&lt;BR /&gt;If I parse using "dd/MM/yy", il works. So even if I parse the excel string cell in "dd/MM/yyyy", I think I get dd/MM/00yy. So the difference of 730xxx days comes from that silly interpretation of a string from excel in dd/MM/yyyy format.</description>
    <pubDate>Thu, 20 Oct 2011 15:42:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-10-20T15:42:30Z</dc:date>
    <item>
      <title>[resolved] DateDiff troubles</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-DateDiff-troubles/m-p/2294442#M67324</link>
      <description>Hi,
&lt;BR /&gt;I try to use Talend.DateDiff but I don't understand the return value:
&lt;BR /&gt;I use a TjavaRow to print the number of days between a date and current date.
&lt;BR /&gt;Date_contractuelle_de_remise_du_document is coming from a excel spreadsheet and is french formatted 'dd/MM/yyyy'
&lt;BR /&gt;System.out.println(TalendDate.parseDate("dd/MM/yyyy",input_row.Date_contractuelle_de_remise_du_document)+ " " 
&lt;BR /&gt;+ TalendDate.getCurrentDate() + " " + TalendDate.diffDate(TalendDate.getCurrentDate(),TalendDate.parseDate("dd/MM/yyyy",input_row.Date_contractuelle_de_remise_du_document),"dd"));
&lt;BR /&gt;Result from execution is :
&lt;BR /&gt;Sat Jan 10 00:02:00 CET 11 Tue Oct 18 14:49:24 CEST 2011 730768
&lt;BR /&gt;Sat Jan 10 00:02:00 CET 11 Tue Oct 18 14:49:24 CEST 2011 730768
&lt;BR /&gt;Sat Jan 10 00:02:00 CET 11 Tue Oct 18 14:49:24 CEST 2011 730768
&lt;BR /&gt;Sat Jan 10 00:02:00 CET 11 Tue Oct 18 14:49:24 CEST 2011 730768
&lt;BR /&gt;Tue Jan 13 00:06:00 CET 11 Tue Oct 18 14:49:24 CEST 2011 730765
&lt;BR /&gt;Why do I get 730765 days between 13th of January and 18th of october ?</description>
      <pubDate>Sat, 16 Nov 2024 12:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-DateDiff-troubles/m-p/2294442#M67324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] DateDiff troubles</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-DateDiff-troubles/m-p/2294443#M67325</link>
      <description>Hi miniquick&lt;BR /&gt;Try the following Code:&lt;BR /&gt;&lt;PRE&gt;System.out.println(TalendDate.parseDate("dd/MM/yyyy",input_row.Date_contractuelle_de_remise_du_document)+ " " &lt;BR /&gt;+ TalendDate.getDate("dd/MM/yyyy") + " " + TalendDate.diffDate(TalendDate.parseDate("dd/MM/yyyy",TalendDate.getDate("dd/MM/yyyy")),TalendDate.parseDate("dd/MM/yyyy",input_row.Date_contractuelle_de_remise_du_document),"dd"));&lt;/PRE&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Brandon</description>
      <pubDate>Tue, 18 Oct 2011 16:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-DateDiff-troubles/m-p/2294443#M67325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-18T16:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] DateDiff troubles</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-DateDiff-troubles/m-p/2294444#M67326</link>
      <description>Thanks for truying to help me, but I got the same result.</description>
      <pubDate>Tue, 18 Oct 2011 17:39:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-DateDiff-troubles/m-p/2294444#M67326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-18T17:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] DateDiff troubles</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-DateDiff-troubles/m-p/2294445#M67327</link>
      <description>Hi&lt;BR /&gt;It seems like like the locale is taken wrongly in your time CET and CEST.</description>
      <pubDate>Wed, 19 Oct 2011 09:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-DateDiff-troubles/m-p/2294445#M67327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-19T09:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] DateDiff troubles</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-DateDiff-troubles/m-p/2294446#M67328</link>
      <description>I found a solution, but not really an explanation !&lt;BR /&gt;If I parse using "dd/MM/yy", il works. So even if I parse the excel string cell in "dd/MM/yyyy", I think I get dd/MM/00yy. So the difference of 730xxx days comes from that silly interpretation of a string from excel in dd/MM/yyyy format.</description>
      <pubDate>Thu, 20 Oct 2011 15:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-DateDiff-troubles/m-p/2294446#M67328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-20T15:42:30Z</dc:date>
    </item>
  </channel>
</rss>

