<?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: Convert DATE (date and time) to STRING (date and time) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280794#M55531</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOmNAAW"&gt;@joe86&lt;/A&gt;,what date format are you getting form Mongo DB?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Nov 2018 07:55:22 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2018-11-28T07:55:22Z</dc:date>
    <item>
      <title>Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280791#M55528</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need to convert a DATE to STRING with a condition.&lt;/P&gt;&lt;P&gt;I need to check if the incoming date (date with timestamp) is lesser than (current date + 7) days. If yes, then i need to pass a string like "To Be Expired" Else, I need to retain the incoming date (date with timestamp) value as it is. My incoming date column is of DateType DATE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help me to achieve this in tMap??&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 07:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280791#M55528</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2018-11-28T07:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280792#M55529</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOmNAAW"&gt;@joe86&lt;/A&gt;,you can compare this way in tmap.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TalendDate.compareDate(TalendDate.addDate(TalendDate.getCurrentDate() ,7,"dd") ,row2.date1)==1 ? "&lt;SPAN&gt;To Be Expired" :TalendDate.parseDate("dd/MM/yyyy", row2.date1)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 07:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280792#M55529</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-11-28T07:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280793#M55530</link>
      <description>thanks 
&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt; 
&lt;BR /&gt;Let me try this. if there is a difference in the format of the date in "row2.date1", will this comparision work. I am asking this since the date is coming from MongoDB and i am comparing it with "current date + 7". ??</description>
      <pubDate>Wed, 28 Nov 2018 07:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280793#M55530</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2018-11-28T07:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280794#M55531</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOmNAAW"&gt;@joe86&lt;/A&gt;,what date format are you getting form Mongo DB?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 07:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280794#M55531</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-11-28T07:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280795#M55532</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOmNAAW"&gt;@joe86&lt;/A&gt;,still do you have issue?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 12:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280795#M55532</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-11-29T12:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280796#M55533</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Hi, sorry for delay. I am getting error as below:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error.jpg" style="width: 588px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0f6.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131899i06867DDA2917F718/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0f6.jpg" alt="0683p000009M0f6.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;can you please help on this??&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 06:16:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280796#M55533</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2018-11-30T06:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280797#M55534</link>
      <description>&lt;P&gt;also, do i need to change the data type of this date column to "string" after applying this formula??&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 06:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280797#M55534</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2018-11-30T06:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280798#M55535</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOmNAAW"&gt;@joe86&lt;/A&gt;,yes the output data type is sting.&amp;nbsp;&lt;SPAN&gt;row2.date1 id date format.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;TalendDate.compareDate(TalendDate.addDate(TalendDate.getCurrentDate() ,7,"dd") ,row2.date1)==1 ? "&lt;/SPAN&gt;&lt;SPAN&gt;To Be Expired" :TalendDate.parseDate("dd/MM/yyyy", row2.date1)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 06:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280798#M55535</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-11-30T06:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280799#M55536</link>
      <description>Hello 
&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;,
&lt;BR /&gt;please ignore all my previous.
&lt;BR /&gt;in your command, you re checking if the incoming date is equal to (current date + 7). But i need, if the incoming date is LESSER THAN (current date + 7), the i need to display the date as it is. And if the incoming date is GREATER THAN (current date + 7), then i need to display "Will expire in 1,2,3 days".</description>
      <pubDate>Fri, 30 Nov 2018 06:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280799#M55536</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2018-11-30T06:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280800#M55537</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOmNAAW"&gt;@joe86&lt;/A&gt;,i am checking that the incoming date is lesser than the current+7 days ,since i was using "&lt;SPAN&gt;==1" in the expresion.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 06:46:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280800#M55537</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-11-30T06:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280801#M55538</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOmNAAW"&gt;@joe86&lt;/A&gt;,then use the below way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;TalendDate.compareDate(TalendDate.addDate(TalendDate.getCurrentDate() ,7,"dd") ,row2.date1)==-1 ? "To Be Expired" :&lt;/SPAN&gt;&lt;SPAN&gt;TalendDate.parseDate("dd/MM/yyyy", row2.date1)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 06:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280801#M55538</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-11-30T06:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280802#M55539</link>
      <description>thanks for your patience. But still i am getting the same error.
&lt;BR /&gt;I have changed my tMap output data type of date column to string, and getting same error again.</description>
      <pubDate>Fri, 30 Nov 2018 06:51:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280802#M55539</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2018-11-30T06:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280803#M55540</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOmNAAW"&gt;@joe86&lt;/A&gt;, use the below one&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;TalendDate.compareDate(TalendDate.addDate(TalendDate.getCurrentDate() ,7,"dd") ,row2.date1)==-1 ? "&lt;/SPAN&gt;&lt;SPAN&gt;To Be Expired" :TalendDate.formatDate("dd/MM/yyyy", row2.date1)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 07:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280803#M55540</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-11-30T07:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280804#M55541</link>
      <description>&lt;P&gt;hello,&lt;/P&gt; 
&lt;P&gt;still facing the same error. see below the screenshot on how i have given in tMap.&lt;/P&gt; 
&lt;P&gt;I have changed the data type to string also.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error1.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1EW.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142957i1B4DA57C9E01FE0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1EW.jpg" alt="0683p000009M1EW.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 07:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280804#M55541</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2018-11-30T07:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280805#M55542</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOmNAAW"&gt;@joe86&lt;/A&gt;,in the expression else part use the&amp;nbsp;&lt;SPAN&gt;TalendDate.formatDate("dd/MM/yyyy", row2.date1)&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 07:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280805#M55542</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-11-30T07:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280806#M55543</link>
      <description>Thanks a lot dude. Its working now.
&lt;BR /&gt;But a small issue.. If the incoming date is NULL/Blank, still the output is getting populated as "to be expired" instead of Null/Blank.</description>
      <pubDate>Fri, 30 Nov 2018 07:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280806#M55543</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2018-11-30T07:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280807#M55544</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOmNAAW"&gt;@joe86&lt;/A&gt;, handle below way for nulls.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row2.date1==null ?row2.date1 : TalendDate.compareDate(TalendDate.addDate(TalendDate.getCurrentDate() ,7,"dd") ,row2.date1)==-1 ? "&lt;/SPAN&gt;&lt;SPAN&gt;To Be Expired" :TalendDate.formatDate("dd/MM/yyyy", row2.date1)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 07:29:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280807#M55544</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-11-30T07:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280808#M55545</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOmNAAW"&gt;@joe86&lt;/A&gt;,please accept the solution and provide Kudos also &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 07:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280808#M55545</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-11-30T07:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280809#M55546</link>
      <description>i gave like below since the date column data type is string in target side:&lt;BR /&gt;Organiser.CRBExpiryDate== null ? TalendDate.formatDate("dd/MM/yyyy", Organiser.CRBExpiryDate):TalendDate.compareDate((TalendDate.addDate(TalendDate.getCurrentDate(),7,"dd")) ,Organiser.CRBExpiryDate)==1 ? "To Be Expired" :TalendDate.formatDate("dd/MM/yyyy", Organiser.CRBExpiryDate)&lt;BR /&gt;&lt;BR /&gt;but getting NULL pointer exception error.</description>
      <pubDate>Fri, 30 Nov 2018 07:43:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280809#M55546</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2018-11-30T07:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DATE (date and time) to STRING (date and time)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280810#M55547</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOmNAAW"&gt;@joe86&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you should change below way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Organiser.CRBExpiryDate== null ? Organiser.CRBExpiryDate : TalendDate.compareDate((TalendDate.addDate(TalendDate.getCurrentDate(),7,"dd")) ,Organiser.CRBExpiryDate)==1 ? "To Be Expired" :TalendDate.formatDate("dd/MM/yyyy", Organiser.CRBExpiryDate)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 07:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-DATE-date-and-time-to-STRING-date-and-time/m-p/2280810#M55547</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-11-30T07:53:21Z</dc:date>
    </item>
  </channel>
</rss>

