<?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: TalendDate strange behaviour in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-strange-behaviour/m-p/2329234#M98438</link>
    <description>Okay, it turns out I have to use .equals() to match the strings. This was just my poor knowledge of Java. Nothing to see here!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That said, I still don't understand why the "0000-00-00" dates come out as "0002-12-31" in Talend.</description>
    <pubDate>Fri, 10 Feb 2017 16:43:50 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2017-02-10T16:43:50Z</dc:date>
    <item>
      <title>TalendDate strange behaviour</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-strange-behaviour/m-p/2329233#M98437</link>
      <description>&lt;P&gt;I have a bunch of dates coming in from a MySQL database, most are "0000-00-00", but if I use TalendDate.formatDate() to print them out, talend thinks they are "0002-12-31". Not only that, but if I try to check the formatted date string with a hard-coded string, they do not match.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;System.out.println((row1.photocardexpiry == null ? "no" : &lt;BR /&gt; TalendDate.formatDate("yyyy-MM-dd",row1.photocardexpiry) + &lt;BR /&gt; (TalendDate.formatDate("yyyy-MM-dd",row1.photocardexpiry) == "0002-12-31" ? "YES!" : ""))); &lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;The results from this end up being along the lines of:&lt;/P&gt; 
&lt;PRE&gt;no&lt;BR /&gt;0002-12-31&lt;BR /&gt;0002-12-31&lt;BR /&gt;no&lt;BR /&gt;no&lt;BR /&gt;no&lt;BR /&gt;no&lt;BR /&gt;0002-12-31&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;When "0002-12-31" crops up, there should be a "YES!" after it, but there never is. For some reason it won't match the strings?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 16:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-strange-behaviour/m-p/2329233#M98437</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2017-02-10T16:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: TalendDate strange behaviour</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-strange-behaviour/m-p/2329234#M98438</link>
      <description>Okay, it turns out I have to use .equals() to match the strings. This was just my poor knowledge of Java. Nothing to see here!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That said, I still don't understand why the "0000-00-00" dates come out as "0002-12-31" in Talend.</description>
      <pubDate>Fri, 10 Feb 2017 16:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-strange-behaviour/m-p/2329234#M98438</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2017-02-10T16:43:50Z</dc:date>
    </item>
  </channel>
</rss>

