<?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] Convert date format in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306625#M78148</link>
    <description>It fails to parse the string to Date with the pattern, what's the data looks? Can you please show me the full error message?&amp;nbsp;</description>
    <pubDate>Wed, 28 Dec 2016 07:37:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-12-28T07:37:36Z</dc:date>
    <item>
      <title>[resolved] Convert date format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306621#M78144</link>
      <description>&lt;P&gt;Hi There,&lt;BR /&gt;&lt;BR /&gt;I have a table which contains the date in varchar form : "2016-09-06T10:05:59.226000Z". I want to convert the same in "2016-09-06 10:05:59". Please help as I am new to this platform.&lt;BR /&gt;&lt;BR /&gt;My Data is in MYSQL.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 10:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306621#M78144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-22T10:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Convert date format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306622#M78145</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;What's the data type of target field? Assuming it is a Date field, read the input data as a string, and then convert it to Date with this expression on tMap: 
&lt;BR /&gt;tMysqlInput--main(row1)--tMap--&amp;gt;... 
&lt;BR /&gt;[font=Verdana, Helvetica, Arial, sans-serif] 
&lt;FONT size="2"&gt;TalendDate.parseDate("yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'",row1.colName)&lt;/FONT&gt;[/font] 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;[font=Verdana, Helvetica, Arial, sans-serif] 
&lt;FONT size="2"&gt;Regards&lt;/FONT&gt;[/font] 
&lt;BR /&gt;[font=Verdana, Helvetica, Arial, sans-serif] 
&lt;FONT size="2"&gt;Shong&lt;/FONT&gt;[/font]</description>
      <pubDate>Sun, 25 Dec 2016 12:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306622#M78145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-25T12:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Convert date format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306623#M78146</link>
      <description>My data source is Google sheets which I am transforming into a CSV file. The Column is "Week" and it is in the format MM/dd/yyyy. When I designate "Week" as Date with format MM/dd/yyyy in the "Edit Schema" and load into postgreSQL (I have used both tMap as intermediary and directly connected tFileInputDelimited to tPostgresqlOutput) it shows up as timestamp without time zone in the postgreSQL database. I even tried the method you have suggested above. Designated "Week" as String in "Edit Schema" and in tMap formatted the column as&amp;nbsp; 
&lt;BR /&gt; 
&lt;BR /&gt;TalendDate.parseDate("MM/dd/yyyy",row1.Week) 
&lt;BR /&gt; 
&lt;BR /&gt;The database still shows as Timestamp without time zone 
&lt;BR /&gt; 
&lt;BR /&gt;The result I am getting in database: 
&lt;BR /&gt;2013-01-06 00:00:00 
&lt;BR /&gt; 
&lt;BR /&gt;The result I am requesting help: 
&lt;BR /&gt;01/06/2013. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/398498/Capture_20161227-0948.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG8g.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138668iA19D2EA1E539F832/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG8g.png" alt="0683p000009MG8g.png" /&gt;&lt;/span&gt; &lt;/A&gt;</description>
      <pubDate>Tue, 27 Dec 2016 17:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306623#M78146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-27T17:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Convert date format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306624#M78147</link>
      <description>&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG6h.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156476i0B909EEC7CA9BDCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG6h.png" alt="0683p000009MG6h.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;I manually edited the circled part in the ink. 
&lt;BR /&gt; 
&lt;BR /&gt;&amp;nbsp; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG8l.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156009i92BAE81FA93139D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG8l.png" alt="0683p000009MG8l.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Shows an error I do not understand.</description>
      <pubDate>Tue, 27 Dec 2016 23:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306624#M78147</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-27T23:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Convert date format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306625#M78148</link>
      <description>It fails to parse the string to Date with the pattern, what's the data looks? Can you please show me the full error message?&amp;nbsp;</description>
      <pubDate>Wed, 28 Dec 2016 07:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306625#M78148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-28T07:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Convert date format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306626#M78149</link>
      <description>Here is the error:
&lt;BR /&gt;Exception in component tMap_1
&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: ""
&lt;BR /&gt; at routines.TalendDate.parseDate(TalendDate.java:895)
&lt;BR /&gt; at routines.TalendDate.parseDate(TalendDate.java:839)
&lt;BR /&gt; at rehearsalproject.salesdata_0_1.SalesData.tFileInputDelimited_1Process(SalesData.java:2609)
&lt;BR /&gt; at rehearsalproject.salesdata_0_1.SalesData.tFileFetch_1Process(SalesData.java:483)
&lt;BR /&gt; at rehearsalproject.salesdata_0_1.SalesData.runJobInTOS(SalesData.java:3431)
&lt;BR /&gt; at rehearsalproject.salesdata_0_1.SalesData.main(SalesData.java:3288)
&lt;BR /&gt;Caused by: java.text.ParseException: Unparseable date: ""
&lt;BR /&gt; at java.text.DateFormat.parse(Unknown Source)
&lt;BR /&gt; at routines.TalendDate.parseDate(TalendDate.java:881)
&lt;BR /&gt; ... 5 more</description>
      <pubDate>Wed, 28 Dec 2016 14:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306626#M78149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-28T14:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Convert date format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306627#M78150</link>
      <description>Hello&amp;nbsp;
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;FONT size="2"&gt;&lt;FONT face="Verdana," helvetica=""&gt;Exception in component tMap_1&lt;/FONT&gt;&lt;/FONT&gt;
 &lt;BR /&gt;
 &lt;FONT size="2"&gt;&lt;FONT face="Verdana," helvetica=""&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: ""&lt;/FONT&gt;&lt;/FONT&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;There exists empty value in this column, you need to set it as original value or a default Date if it is empty. eg:
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana," helvetica=""&gt;row1.Week.equals("")?"":TalendDate.parseDate("MM/dd/yyyy",row1.Week)&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana," helvetica=""&gt;Regards&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana," helvetica=""&gt;Shong&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 29 Dec 2016 06:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306627#M78150</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-29T06:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Convert date format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306628#M78151</link>
      <description>Thanks Shong!!!</description>
      <pubDate>Thu, 29 Dec 2016 16:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306628#M78151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-29T16:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Convert date format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306629#M78152</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a date column which has differnet type of date in same column from my CSv file. Please find the below sample for the same -&lt;/P&gt;
&lt;TABLE width="168"&gt;
 &lt;TBODY&gt;
  &lt;TR&gt;
   &lt;TD width="168"&gt;30-09-2019 05:51:53&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;Sat, 28 Sep 2019 12:15:11&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;24-09-2019 14:54:16&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;Sun, 22 Sep 2019 14:09:39&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;Fri, 20 Sep 2019 12:20:19&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;Mon, 23 Sep 2019 20:29:49&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;23-09-2019 16:58:08&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;30-09-2019 09:21:58&lt;/TD&gt;
  &lt;/TR&gt;
 &lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;Error :&lt;/P&gt;
&lt;P&gt;Exception in component tMap_1 (App_Visit_Data)&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "Wed, 2 Oct 2019 05:21:36"&lt;BR /&gt;at routines.TalendDate.parseDate(TalendDate.java:895)&lt;BR /&gt;at routines.TalendDate.parseDate(TalendDate.java:839)&lt;BR /&gt;at alghanim_project.app_visit_data_0_1.App_Visit_Data.tFileInputDelimited_1Process(App_Visit_Data.java:1565)&lt;BR /&gt;at alghanim_project.app_visit_data_0_1.App_Visit_Data.runJobInTOS(App_Visit_Data.java:2255)&lt;BR /&gt;at alghanim_project.app_visit_data_0_1.App_Visit_Data.main(App_Visit_Data.java:2104)&lt;BR /&gt;Caused by: java.text.ParseException: Unparseable date: "Wed, 2 Oct 2019 05:21:36"&lt;BR /&gt;at java.text.DateFormat.parse(Unknown Source)&lt;BR /&gt;at routines.TalendDate.parseDate(TalendDate.java:881)&lt;BR /&gt;... 4 more&lt;BR /&gt;[statistics] disconnected&lt;BR /&gt;Job App_Visit_Data ended at 19:03 02/03/2020. [exit code=1]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LxdW"&gt;Screen1 error.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lxdl"&gt;Screen2.JPG&lt;/A&gt;</description>
      <pubDate>Mon, 02 Mar 2020 13:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306629#M78152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-02T13:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Convert date format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306630#M78153</link>
      <description>Its really urgent, Please help me with the same.</description>
      <pubDate>Mon, 02 Mar 2020 13:43:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-date-format/m-p/2306630#M78153</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-02T13:43:28Z</dc:date>
    </item>
  </channel>
</rss>

