<?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: Make tMap remove a date 00/00/00 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Make-tMap-remove-a-date-00-00-00/m-p/2253677#M36935</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It works "ToMap.date_naissance.equals("00/00/00") ? null : date_naissance" Only when both the source and target data type is string.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What if our datatype in source is string and target is date data type.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2017 07:01:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-08T07:01:37Z</dc:date>
    <item>
      <title>Make tMap remove a date 00/00/00</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-tMap-remove-a-date-00-00-00/m-p/2253675#M36933</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I have a csv file which have some time a date like this&amp;nbsp;&lt;SPAN&gt;00/00/00 by using tMap I want to make a condition if it 00/00/00 make it null&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I tried but its not work&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ToMap.date_naissance &amp;nbsp;!= &lt;SPAN&gt;"00/00/00"&lt;/SPAN&gt; ? (ToMap.date_naissance).toString() : null&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-tMap-remove-a-date-00-00-00/m-p/2253675#M36933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Make tMap remove a date 00/00/00</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-tMap-remove-a-date-00-00-00/m-p/2253676#M36934</link>
      <description>As input is a csv file, you should consider date_naissance field as a string. Change it in the corresponding schema and try this:&lt;BR /&gt;&lt;BR /&gt;ToMap.date_naissance.equals("00/00/00") ? null : date_naissance&lt;BR /&gt;&lt;BR /&gt;For France it should be dd/MM/yy.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,</description>
      <pubDate>Fri, 05 May 2017 21:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-tMap-remove-a-date-00-00-00/m-p/2253676#M36934</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-05T21:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Make tMap remove a date 00/00/00</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-tMap-remove-a-date-00-00-00/m-p/2253677#M36935</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It works "ToMap.date_naissance.equals("00/00/00") ? null : date_naissance" Only when both the source and target data type is string.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What if our datatype in source is string and target is date data type.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 07:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-tMap-remove-a-date-00-00-00/m-p/2253677#M36935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-08T07:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Make tMap remove a date 00/00/00</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Make-tMap-remove-a-date-00-00-00/m-p/2253678#M36936</link>
      <description>As I suggest, you should have the date as a string as it comes from a csv file.
&lt;BR /&gt;For the initial request, I don't think casting "00/00/00" is possible as it is not a valid date.
&lt;BR /&gt;In other case, if one of the dates is a string you need to convert it for comparison:
&lt;BR /&gt;TalendDate.parseDate("yy/MM/dd", row1.stringField)
&lt;BR /&gt;
&lt;BR /&gt;Have look at this link for information about TalendDate routines.
&lt;BR /&gt;
&lt;A href="https://help.talend.com/display/TalendOpenStudioforBigDataUserGuide520EN/10.5+TalendDate+Routines" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/display/TalendOpenStudioforBigDataUserGuide520EN/10.5+TalendDate+Routines&lt;/A&gt;</description>
      <pubDate>Mon, 08 May 2017 07:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Make-tMap-remove-a-date-00-00-00/m-p/2253678#M36936</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-08T07:37:12Z</dc:date>
    </item>
  </channel>
</rss>

