<?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 write if and else condition check for the date pattern in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-if-and-else-condition-check-for-the-date-pattern-in/m-p/2279663#M54751</link>
    <description>&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date1&lt;/TD&gt;&lt;TD&gt;Date2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6/2/2018&lt;/TD&gt;&lt;TD&gt;7/2/2019&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;TD&gt;7/25/2019&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the Date1 is null i need to populate the value from Date2 in the target&lt;/P&gt;&lt;P&gt;If the Date1 is not null i need to populate the value as current date in the target&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My expected output column&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;output&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;today's date (11/03/2019)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7/25/2019&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In Advance&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:28:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T04:28:51Z</dc:date>
    <item>
      <title>How to write if and else condition check for the date pattern in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-if-and-else-condition-check-for-the-date-pattern-in/m-p/2279663#M54751</link>
      <description>&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date1&lt;/TD&gt;&lt;TD&gt;Date2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6/2/2018&lt;/TD&gt;&lt;TD&gt;7/2/2019&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;TD&gt;7/25/2019&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the Date1 is null i need to populate the value from Date2 in the target&lt;/P&gt;&lt;P&gt;If the Date1 is not null i need to populate the value as current date in the target&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My expected output column&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;output&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;today's date (11/03/2019)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7/25/2019&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In Advance&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-if-and-else-condition-check-for-the-date-pattern-in/m-p/2279663#M54751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to write if and else condition check for the date pattern in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-if-and-else-condition-check-for-the-date-pattern-in/m-p/2279664#M54752</link>
      <description>row1.date1 == null ? row1.date2 : TalendDate.formatDate("MM/dd/yyyy", TalendDate.getCurrentDate())</description>
      <pubDate>Thu, 03 Oct 2019 17:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-if-and-else-condition-check-for-the-date-pattern-in/m-p/2279664#M54752</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-03T17:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to write if and else condition check for the date pattern in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-if-and-else-condition-check-for-the-date-pattern-in/m-p/2279665#M54753</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Am getting cannot convert string to date error, can you please help me out how to resolve it&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="talenderror.PNG" style="width: 610px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7VS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147726i727751B8E12B2162/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7VS.png" alt="0683p000009M7VS.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 17:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-if-and-else-condition-check-for-the-date-pattern-in/m-p/2279665#M54753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-03T17:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to write if and else condition check for the date pattern in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-if-and-else-condition-check-for-the-date-pattern-in/m-p/2279666#M54754</link>
      <description>Just change for this if datatype is date:&lt;BR /&gt;row1.date1 == null ? row1.date2 : TalendDate.getCurrentDate())&lt;BR /&gt;In this case formatting doesn't make sense, a date is a date...&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Oct 2019 17:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-if-and-else-condition-check-for-the-date-pattern-in/m-p/2279666#M54754</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-03T17:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to write if and else condition check for the date pattern in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-if-and-else-condition-check-for-the-date-pattern-in/m-p/2279667#M54755</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;row1.date1 == null ? row1.date2 : TalendDate.getCurrentDate() i used this, so it worked out as per my need thanks&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 17:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-if-and-else-condition-check-for-the-date-pattern-in/m-p/2279667#M54755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-03T17:59:52Z</dc:date>
    </item>
  </channel>
</rss>

