<?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] Unparseable date in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date/m-p/2332700#M101556</link>
    <description>@Berin Richard: Thanks for the format but I am not specifying the date format in the tMap component. Also the +01:00 is the timezone offset that is provided in the value that I cannot ignore.
&lt;BR /&gt;@Vaibhav: I have an XSD which has defined the datatype for this field as Date. 
&lt;BR /&gt;So I need to set the date pattern in the XML file's Schema. I don't perform the conversion in tMap which would have been easier for me. So basically the date pattern is defined in the schema available in the Metadata-&amp;gt;File xml.</description>
    <pubDate>Wed, 09 Jul 2014 09:22:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-09T09:22:03Z</dc:date>
    <item>
      <title>[resolved] Unparseable date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date/m-p/2332697#M101553</link>
      <description>Hi,&lt;BR /&gt;I have created a job to read data from an XML file and output the data into multiple database tables.&lt;BR /&gt;This XML file contains date fields where the date value is given as follows:&lt;BR /&gt;1982-05-04T00:00:00.000+01:00&lt;BR /&gt;&lt;BR /&gt;In the schema defined for this XML file, when I give the date format as&lt;BR /&gt;"yyyy-MM-dd'T'HH:mm:ss.SSSXXX"&lt;BR /&gt;I get the error message "Illegal pattern character 'X'".&lt;BR /&gt;For all other date format patterns I get the message: Unparseable date: "1982-05-04T00:00:00.000+01:00"&lt;BR /&gt;Can anyone tell me what should be the date format pattern I should provide?</description>
      <pubDate>Wed, 09 Jul 2014 06:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date/m-p/2332697#M101553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-09T06:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date/m-p/2332698#M101554</link>
      <description>Hi Ketan,&lt;BR /&gt;You can try the below approach.&lt;BR /&gt;Read the field as string and in tMap parse it to date&lt;BR /&gt;TalendDate.parseDate("yyyy-MM-dd'T'HH:mm:ss.SSS", column_name)&lt;BR /&gt;I'm not aware of the +01:00 which is mentioned.&lt;BR /&gt;As per this, your output will be &lt;BR /&gt;1982-05-04 00:00:00.000&lt;BR /&gt;~Berin</description>
      <pubDate>Wed, 09 Jul 2014 08:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date/m-p/2332698#M101554</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-09T08:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date/m-p/2332699#M101555</link>
      <description>Hi Ketan,&lt;BR /&gt;This last +1 must be related to timezone adjustment...&lt;BR /&gt;What is your input format is this date/string... if you can read it as as string, then lots of possibilities are there... please confirm the data type of your date column?&lt;BR /&gt;vaibhav</description>
      <pubDate>Wed, 09 Jul 2014 09:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date/m-p/2332699#M101555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-09T09:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date/m-p/2332700#M101556</link>
      <description>@Berin Richard: Thanks for the format but I am not specifying the date format in the tMap component. Also the +01:00 is the timezone offset that is provided in the value that I cannot ignore.
&lt;BR /&gt;@Vaibhav: I have an XSD which has defined the datatype for this field as Date. 
&lt;BR /&gt;So I need to set the date pattern in the XML file's Schema. I don't perform the conversion in tMap which would have been easier for me. So basically the date pattern is defined in the schema available in the Metadata-&amp;gt;File xml.</description>
      <pubDate>Wed, 09 Jul 2014 09:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date/m-p/2332700#M101556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-09T09:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Unparseable date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date/m-p/2332701#M101557</link>
      <description>Hi Ketan,&lt;BR /&gt;Check this,&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/2375222/java-simpledateformat-for-time-zone-with-a-colon-seperator" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/2375222/java-simpledateformat-for-time-zone-with-a-colon-seperator&lt;/A&gt;&lt;BR /&gt;You can get the timezone offset formatted like +01:00 with the SimpleDateFormat in Java 7 (yyyy-MM-dd'T'hh:mm:ss.SSSXXX), or with the Joda's DateTimeFormat (yyyy-MM-dd'T'hh:mm:ss.SSSZZ)&lt;BR /&gt;It may help.&lt;BR /&gt;Thanks&lt;BR /&gt;Vaibhav</description>
      <pubDate>Wed, 09 Jul 2014 10:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Unparseable-date/m-p/2332701#M101557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-09T10:36:38Z</dc:date>
    </item>
  </channel>
</rss>

