<?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: Unparseable date - Convert JSON string to Date in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-Convert-JSON-string-to-Date/m-p/2240855#M28191</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLRdAAO"&gt;@EdithM&lt;/A&gt;&amp;nbsp;, yes you need to remove [" and ]" ,and then convert it will work.&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2020 04:56:44 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2020-05-08T04:56:44Z</dc:date>
    <item>
      <title>Unparseable date - Convert JSON string to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-Convert-JSON-string-to-Date/m-p/2240852#M28188</link>
      <description>&lt;P&gt;I'm trying to convert a string field from tExtractJSONFields to a date.&lt;/P&gt;
&lt;P&gt;The expression in tMap is &lt;FONT&gt;TalendDate.parseDate("yyyy-MM-dd hh:mm:ss",row4.Date). &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;Here is the error:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;Caused by: java.text.ParseException: Unparseable date: "["2020-03-09 15:21:53"]" &lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output column is DATE type, formatted&amp;nbsp;&lt;FONT&gt;"yyyy-MM-dd HH:mm:ss"&lt;/FONT&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please Help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 00:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-Convert-JSON-string-to-Date/m-p/2240852#M28188</guid>
      <dc:creator>Edith1</dc:creator>
      <dc:date>2020-05-07T00:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date - Convert JSON string to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-Convert-JSON-string-to-Date/m-p/2240853#M28189</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLRdAAO"&gt;@EdithM&lt;/A&gt;&amp;nbsp;, the below expression working well. you need to check expression and data types of the target once.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;TalendDate.parseDate("yyyy-MM-dd hh:mm:ss",row4.Date)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 04:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-Convert-JSON-string-to-Date/m-p/2240853#M28189</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-05-07T04:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date - Convert JSON string to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-Convert-JSON-string-to-Date/m-p/2240854#M28190</link>
      <description>&lt;P&gt;Thanks for the reply &lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;. The expression is the same and the target data type is Date and date pattern is &lt;FONT&gt;"yyyy-MM-dd HH:mm:ss". I am still getting the same unparsable date error. &lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I did a test where I changed the target field as string and removed the expression. It's logging as&amp;nbsp;&lt;FONT&gt;["2020-03-26 15:30:55"]&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT&gt;Do I need to replace the brackets and double quotes before the expression &lt;SPAN&gt;TalendDate.parseDate("yyyy-MM-dd hh:mm:ss",row4.Date)&lt;/SPAN&gt;?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 16:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-Convert-JSON-string-to-Date/m-p/2240854#M28190</guid>
      <dc:creator>Edith1</dc:creator>
      <dc:date>2020-05-07T16:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unparseable date - Convert JSON string to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-Convert-JSON-string-to-Date/m-p/2240855#M28191</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLRdAAO"&gt;@EdithM&lt;/A&gt;&amp;nbsp;, yes you need to remove [" and ]" ,and then convert it will work.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 04:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unparseable-date-Convert-JSON-string-to-Date/m-p/2240855#M28191</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-05-08T04:56:44Z</dc:date>
    </item>
  </channel>
</rss>

