<?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: String to date conversion in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/String-to-date-conversion/m-p/2352963#M119248</link>
    <description>&lt;P&gt;Thankyou!&lt;/P&gt;
&lt;P&gt;It worked, I guess that is the only method, any other suggestions are welcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW slight correction in substring expression&lt;/P&gt;
&lt;P&gt;yourDate.substring(0,2) + "-" +&amp;nbsp;&lt;SPAN&gt;yourDate&lt;/SPAN&gt;.substring(2,4) + "-" +&amp;nbsp;&lt;SPAN&gt;yourDate&lt;/SPAN&gt;.substring(4,8) as var1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and later I used&amp;nbsp;TalendDate.parseDate("MM-dd-yyyy",Var.var1)&lt;/P&gt;</description>
    <pubDate>Thu, 05 Apr 2018 18:53:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-05T18:53:57Z</dc:date>
    <item>
      <title>String to date conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-date-conversion/m-p/2352958#M119243</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I've source string in the format 'MMddyyyy'("12012016") and I want to convert it into&amp;nbsp;date 'MM-dd-yyyy'.&lt;/P&gt;&lt;P&gt;Is there a function in talend to convert this type? I used&amp;nbsp;&amp;nbsp;TalendDate.parseDate("MM-dd-yyyy",source.column) and its throwing-- Unparseable date: "12012016"&amp;nbsp; error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:14:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-date-conversion/m-p/2352958#M119243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-05T18:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: String to date conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-date-conversion/m-p/2352959#M119244</link>
      <description>&lt;P&gt;You can simply add "-" to each of the necessary&amp;nbsp;positions.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-date-conversion/m-p/2352959#M119244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-05T18:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: String to date conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-date-conversion/m-p/2352960#M119245</link>
      <description>&lt;P&gt;In that scenario, the output will be still a string type not date, isn't it?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-date-conversion/m-p/2352960#M119245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-05T18:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: String to date conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-date-conversion/m-p/2352961#M119246</link>
      <description>&lt;P&gt;TalendDate.formatDate("MM-dd-yyyy", TalendDate.parseDate("MMddyyyy",yourDate))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is what you want.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:27:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-date-conversion/m-p/2352961#M119246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-05T18:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: String to date conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-date-conversion/m-p/2352962#M119247</link>
      <description>&lt;P&gt;It is all string manipulation. You can also do something like the below:&lt;BR /&gt;&lt;BR /&gt;yourDate.substring(0,2) + "-" +&amp;nbsp;yourDate&lt;SPAN&gt;.substring(2,2) + "-" +&amp;nbsp;&lt;/SPAN&gt;yourDate&lt;SPAN&gt;.substring(4,4)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-date-conversion/m-p/2352962#M119247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-05T18:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: String to date conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-date-conversion/m-p/2352963#M119248</link>
      <description>&lt;P&gt;Thankyou!&lt;/P&gt;
&lt;P&gt;It worked, I guess that is the only method, any other suggestions are welcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW slight correction in substring expression&lt;/P&gt;
&lt;P&gt;yourDate.substring(0,2) + "-" +&amp;nbsp;&lt;SPAN&gt;yourDate&lt;/SPAN&gt;.substring(2,4) + "-" +&amp;nbsp;&lt;SPAN&gt;yourDate&lt;/SPAN&gt;.substring(4,8) as var1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and later I used&amp;nbsp;TalendDate.parseDate("MM-dd-yyyy",Var.var1)&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-date-conversion/m-p/2352963#M119248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-05T18:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: String to date conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-date-conversion/m-p/2352964#M119249</link>
      <description>&lt;P&gt;You're welcome. Thank you for the correction. I was doing it off memory so I apologize for the error. I was trying to beat others to the solution.&lt;BR /&gt;&lt;BR /&gt;You could use TalendDate solution as well:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;TalendDate.formatDate("MM-dd-yyyy", TalendDate.parseDate("MMddyyyy",yourDate))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-date-conversion/m-p/2352964#M119249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-05T18:59:48Z</dc:date>
    </item>
  </channel>
</rss>

