<?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: [resolved] cannot convert string to date in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263942#M43945</link>
    <description>Thanks for your prompt reply umesh.
&lt;BR /&gt;I tried even that also. But it didn't works. Would you suggest more ideas?
&lt;BR /&gt;Can I write if else condition in tMap to take any value either yyyyMMdd format or yyyy-MM-dd format and then to insert into output column as date with yyyy-MM-dd format? If so How should I implement this?
&lt;BR /&gt;Any help would be appreciated.
&lt;BR /&gt;Thank you.</description>
    <pubDate>Mon, 08 Dec 2014 10:53:59 GMT</pubDate>
    <dc:creator>soujanyam</dc:creator>
    <dc:date>2014-12-08T10:53:59Z</dc:date>
    <item>
      <title>[resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263940#M43943</link>
      <description>Hi everyone. 
&lt;BR /&gt; I've the csv file in which one column has date (which is defined as Number in csv file) but in 
&lt;B&gt; tFileInpuDelimited&lt;/B&gt; it read as string in which some of the vales are like 
&lt;B&gt;20140424 &lt;/B&gt;and some are like 
&lt;B&gt;2014-04-25&lt;/B&gt; in the same column.I've to parse this data into output component( 
&lt;B&gt;tOracleOutput&lt;/B&gt;)as date column.So I tried to convert the string to date by using&amp;nbsp; 
&lt;BR /&gt;TalendDate.parseDate("yyyy-MM-dd",TalendDate.formatDate("yyyy-MM-dd",row1.column1)) and changed the output column as date with format 
&lt;B&gt; yyyy-MM-dd.&lt;/B&gt; 
&lt;BR /&gt;Then I'm getting error as&amp;nbsp; 
&lt;BR /&gt;Unparseable date: 
&lt;B&gt; "20140424"&lt;/B&gt;. 
&lt;BR /&gt;How could I parse this into output component? 
&lt;BR /&gt;Any help would be greatly appreciated. 
&lt;BR /&gt;Thank you in advance.</description>
      <pubDate>Sat, 16 Nov 2024 11:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263940#M43943</guid>
      <dc:creator>soujanyam</dc:creator>
      <dc:date>2024-11-16T11:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263941#M43944</link>
      <description>use below code.&lt;BR /&gt;&lt;PRE&gt;TalendDate.parseDate("yyyyMMdd",row1.column1)&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Dec 2014 10:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263941#M43944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-08T10:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263942#M43945</link>
      <description>Thanks for your prompt reply umesh.
&lt;BR /&gt;I tried even that also. But it didn't works. Would you suggest more ideas?
&lt;BR /&gt;Can I write if else condition in tMap to take any value either yyyyMMdd format or yyyy-MM-dd format and then to insert into output column as date with yyyy-MM-dd format? If so How should I implement this?
&lt;BR /&gt;Any help would be appreciated.
&lt;BR /&gt;Thank you.</description>
      <pubDate>Mon, 08 Dec 2014 10:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263942#M43945</guid>
      <dc:creator>soujanyam</dc:creator>
      <dc:date>2014-12-08T10:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263943#M43946</link>
      <description>output will not ask you for specific format, it will required only Date object, If you show me input string from your file then I can suggest you better.</description>
      <pubDate>Mon, 08 Dec 2014 11:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263943#M43946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-08T11:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263944#M43947</link>
      <description>Thanks for your reply. The input column is as below.&lt;BR /&gt;Date&lt;BR /&gt;2014-12-21&lt;BR /&gt;20140214&lt;BR /&gt;2014-12-13&lt;BR /&gt;2014-12-23&lt;BR /&gt;20141201&lt;BR /&gt;The output should be in yyyy-MM-dd fromat only whatever may be the input format.</description>
      <pubDate>Mon, 08 Dec 2014 11:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263944#M43947</guid>
      <dc:creator>soujanyam</dc:creator>
      <dc:date>2014-12-08T11:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263945#M43948</link>
      <description>So you have two formats in single column. then you can use below logic which help you.&amp;nbsp;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;yourcolumn!=null &amp;amp;&amp;amp; yourcolumn!=" "? &lt;BR /&gt;TalendDate.parseDate("yyyyMMdd', yourcolumn.replaceAll("-", "")):null&lt;/PRE&gt;&lt;BR /&gt;this will solve your problem.</description>
      <pubDate>Mon, 08 Dec 2014 12:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263945#M43948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-08T12:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263946#M43949</link>
      <description>Thanks for your prompt reply.
&lt;BR /&gt;Sorry Umesh I forgor to tell you onemore thing.
&lt;BR /&gt;I also had -1,-2 values in that same column.That above problem is solved with
&lt;B&gt; TalendDate.parseDate("yyyyMMdd",row1.Column1)&lt;/B&gt;.
&lt;BR /&gt;Now the problem is with -1,-2 values. I've to place 0000-00-00 in output column when I get those values from input file. 
&lt;BR /&gt;How could I do this? 
&lt;BR /&gt;Thanks you</description>
      <pubDate>Mon, 08 Dec 2014 12:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263946#M43949</guid>
      <dc:creator>soujanyam</dc:creator>
      <dc:date>2014-12-08T12:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263947#M43950</link>
      <description>You can do in the same way, you have to check the length of column if it is less than expected then replace with, desire string.&amp;nbsp;</description>
      <pubDate>Mon, 08 Dec 2014 13:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263947#M43950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-08T13:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263948#M43951</link>
      <description>Thanks for your reply Umesh. But I didn't get you. Where to check the length of column?</description>
      <pubDate>Tue, 09 Dec 2014 04:17:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263948#M43951</guid>
      <dc:creator>soujanyam</dc:creator>
      <dc:date>2014-12-09T04:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263949#M43952</link>
      <description>check the length of the column in same code.&lt;BR /&gt;&lt;PRE&gt;yourcolumn!=null &amp;amp;&amp;amp; yourcolumn!=" " &amp;amp;&amp;amp; yourcolumn.length&amp;gt;68? &lt;BR /&gt;TalendDate.parseDate("yyyyMMdd', yourcolumn.replaceAll("-", "")):TalendDate.parseDate("yyyyMMdd', "000000")&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Dec 2014 07:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263949#M43952</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-09T07:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263950#M43953</link>
      <description>Thank you but if I had different data formats in input column how to parse it.&lt;BR /&gt;When input has only two formats "20140224" or "2014-02-24" by using &lt;B&gt;TalendDate.parseDate("yyyyMMdd",row1.Column1),&lt;/B&gt; data is parsing to the output.&lt;BR /&gt;When date includes&amp;nbsp; "02/24/2014" with above formats,&lt;BR /&gt;I used in tMap as &lt;BR /&gt;TalendDate.isDate(row1.Column1,"MM/dd/yyyy")?TalendDate.parseDate("yyyy-MM-dd",Column1):TalendDate.parseDate("yyyyMMdd",row1.Column1))&lt;BR /&gt;then could not parse the data.Getting error as&lt;BR /&gt;&lt;B&gt;Caused by: java.text.ParseException: Unparseable date: "02/24/14"&lt;/B&gt;&lt;BR /&gt;What could I do?&lt;BR /&gt;Thank you</description>
      <pubDate>Tue, 09 Dec 2014 12:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263950#M43953</guid>
      <dc:creator>soujanyam</dc:creator>
      <dc:date>2014-12-09T12:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263951#M43954</link>
      <description>First get a list of formats then do above logic for replace and then do the parsing that will help. use each parsing according to source format.&amp;nbsp;&lt;BR /&gt;if there are multiple formats then create routine and write all the check and validation to handle date conversion, and then return date object form routine function. this is the best way for you.</description>
      <pubDate>Tue, 09 Dec 2014 12:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263951#M43954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-09T12:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263952#M43955</link>
      <description>Ya I've checked the source data format. It has the above three formats only. So how could I handle?
&lt;BR /&gt;What should I modify in the function which I've used
&lt;BR /&gt;
&lt;B&gt;TalendDate.isDate(row1.Column1,"MM/dd/yyyy")?TalendDate.parseDate("yyyy-MM-dd",row1.Column1):TalendDate.parseDate("yyyyMMdd",row1.Column1))&lt;/B&gt;
&lt;BR /&gt;Please provide the solution to me. I'm eagerly waiting for the solution.
&lt;BR /&gt;Thank you.</description>
      <pubDate>Tue, 09 Dec 2014 12:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263952#M43955</guid>
      <dc:creator>soujanyam</dc:creator>
      <dc:date>2014-12-09T12:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263953#M43956</link>
      <description>try this.&lt;BR /&gt;&lt;PRE&gt;yourcolumn!=null &amp;amp;&amp;amp; yourcolumn!=" " &amp;amp;&amp;amp; yourcolumn.length&amp;gt;68? yourcolumn.contains("-")?&lt;BR /&gt;TalendDate.parseDate("yyyyMMdd', yourcolumn.replaceAll("-", "")):TalendDate.parseDate("MM/dd/yyyy', yourcolumn):TalendDate.parseDate("yyyyMMdd', "000000")&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Dec 2014 13:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263953#M43956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-09T13:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263954#M43957</link>
      <description>Hi Umesh,&lt;BR /&gt;I have situation that, I have source table with 2 columns as follows..&lt;BR /&gt;&lt;U&gt;START_DT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NAME&lt;/U&gt;&lt;BR /&gt;01/12/2015 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PANKAJ&lt;BR /&gt;02/27/2010 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SURAJ&lt;BR /&gt;START_DT has string datatype in source table but i just want it in DATE datatype without changing its values format.&lt;BR /&gt;how i can achieve that? give solution..&lt;BR /&gt;thanx in advance.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shri_Kul1&lt;BR /&gt;Talend User.</description>
      <pubDate>Thu, 19 Nov 2015 09:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263954#M43957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-19T09:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263955#M43958</link>
      <description>Hi Shri_Kul1,&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="" calibri=""&gt;You can use built-in function TalendDate.parseDate(string date_pattern, string string_of_date) to convert String to Date in tMap.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="" calibri=""&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="" calibri=""&gt;Sabrina&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 19 Nov 2015 09:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263955#M43958</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-19T09:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263956#M43959</link>
      <description>Hey Hi,&lt;BR /&gt;could you please give me example with that logic you mentioned.&lt;BR /&gt;Regards,&lt;BR /&gt;Shri_Kul1</description>
      <pubDate>Thu, 19 Nov 2015 09:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263956#M43959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-19T09:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263957#M43960</link>
      <description>Hey ,&lt;BR /&gt;Thanks for your valuable reply , its working .... Thanks a Lot.&lt;BR /&gt;Regards,&lt;BR /&gt;Shri_Kul1&lt;BR /&gt;Talend User.</description>
      <pubDate>Thu, 19 Nov 2015 09:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263957#M43960</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-19T09:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263958#M43961</link>
      <description>Hi Shri_Kul1, 
&lt;BR /&gt;Please take a look at my screenshot. 
&lt;BR /&gt;Feel free to let us know if it is what you are looking for. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBPu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129256i572BDED25F2E5412/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBPu.png" alt="0683p000009MBPu.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 19 Nov 2015 09:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263958#M43961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-19T09:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] cannot convert string to date in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263959#M43962</link>
      <description>Hi, 
&lt;BR /&gt;Exactly, i have done as posted in screen shot. 
&lt;BR /&gt;Thanks Sabrina for your valuable feedback. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Shri_Kul1 
&lt;BR /&gt;Talend User. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBn7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144586i7FC3961B7C020BCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBn7.png" alt="0683p000009MBn7.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 19 Nov 2015 11:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-cannot-convert-string-to-date-in-tMap/m-p/2263959#M43962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-19T11:19:57Z</dc:date>
    </item>
  </channel>
</rss>

