<?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 How to pass blank String Date to output in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-blank-String-Date-to-output-in-tMap/m-p/2303103#M75020</link>
    <description>&lt;P&gt;Hello Talend Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know there has been a few posts about this, but I still can't find the proper syntax in my tMap Output Column for a String Date Column having "" blank values. I've tried a lot of variations on this syntax and still no luck. I'm also formatting the string date into a new format after handling the NULL and blank values. The Java Run Time Error I'm getting is&lt;/P&gt;
&lt;P&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: ""&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"".equals(row1.Mail_date) || row1.Mail_date == null ? "" : TalendDate.formatDate("yyyyMMdd",TalendDate.parseDate("MM/dd/yyyy",row1.Mail_date)) &lt;/PRE&gt;
&lt;P&gt;Can anyone in the community help me with this syntax&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Andrew&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2019 16:25:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-10T16:25:07Z</dc:date>
    <item>
      <title>How to pass blank String Date to output in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-blank-String-Date-to-output-in-tMap/m-p/2303103#M75020</link>
      <description>&lt;P&gt;Hello Talend Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know there has been a few posts about this, but I still can't find the proper syntax in my tMap Output Column for a String Date Column having "" blank values. I've tried a lot of variations on this syntax and still no luck. I'm also formatting the string date into a new format after handling the NULL and blank values. The Java Run Time Error I'm getting is&lt;/P&gt;
&lt;P&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: ""&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"".equals(row1.Mail_date) || row1.Mail_date == null ? "" : TalendDate.formatDate("yyyyMMdd",TalendDate.parseDate("MM/dd/yyyy",row1.Mail_date)) &lt;/PRE&gt;
&lt;P&gt;Can anyone in the community help me with this syntax&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Andrew&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 16:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-blank-String-Date-to-output-in-tMap/m-p/2303103#M75020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-10T16:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass blank String Date to output in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-blank-String-Date-to-output-in-tMap/m-p/2303104#M75021</link>
      <description>your date have to be date type allowing null value.&lt;BR /&gt;(row1.Mail_date != null)?TalendDate.formatDate("yyyyMMdd",row1.Mail_date):""&lt;BR /&gt;if your date is on text format, you have to be sure of your format. did you have blank char into Your String?&lt;BR /&gt;</description>
      <pubDate>Mon, 13 May 2019 08:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-blank-String-Date-to-output-in-tMap/m-p/2303104#M75021</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-05-13T08:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass blank String Date to output in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-blank-String-Date-to-output-in-tMap/m-p/2303105#M75022</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKpMAAW"&gt;@fdenis&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So should I make a Variable&amp;nbsp;TalendDate.parseDate("yyyyMMdd",row1.Mail_date) to change my Source Data to Date Type and then use your statement below as the output to the column?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;(row1.Mail_date != null)?TalendDate.formatDate("yyyyMMdd",row1.Mail_date):"&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I didn't understand your question&amp;nbsp;did you have blank char into Your String?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I do have Blank Source Data that needs handled with a tMap Expression.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Let me know thanks!&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 20:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-blank-String-Date-to-output-in-tMap/m-p/2303105#M75022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-13T20:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass blank String Date to output in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-blank-String-Date-to-output-in-tMap/m-p/2303106#M75023</link>
      <description>work by steps one tmap to remove blank.
&lt;BR /&gt;one to change strign to date.
&lt;BR /&gt;step by step:
&lt;BR /&gt;test your first tmap output with no blank date format are all the same. (you can use tlog to show datas)
&lt;BR /&gt;add your second tmap with formating.
&lt;BR /&gt;
&lt;BR /&gt;after that you can optimise all in one tmap</description>
      <pubDate>Tue, 14 May 2019 08:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-blank-String-Date-to-output-in-tMap/m-p/2303106#M75023</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-05-14T08:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass blank String Date to output in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-blank-String-Date-to-output-in-tMap/m-p/2303107#M75024</link>
      <description>&lt;P&gt;Try row1.Mail_date==null || row1.Mail_date.length()==0 ? ""&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 17:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-blank-String-Date-to-output-in-tMap/m-p/2303107#M75024</guid>
      <dc:creator>cmendels</dc:creator>
      <dc:date>2019-05-14T17:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass blank String Date to output in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-blank-String-Date-to-output-in-tMap/m-p/2303108#M75025</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMhlAAG"&gt;@cmendels&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKpMAAW"&gt;@fdenis&lt;/A&gt;&amp;nbsp;for the assistance&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 18:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-blank-String-Date-to-output-in-tMap/m-p/2303108#M75025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-14T18:41:36Z</dc:date>
    </item>
  </channel>
</rss>

