<?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 XML Date Conversion Issue in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/XML-Date-Conversion-Issue/m-p/2199417#M2336</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the XML file, i get value of date column as "2019-01-10T06:35:00-04:00" . where "-04:00" is specifying time zone(GMT).&lt;/P&gt;&lt;P&gt;Now while converting the date using&amp;nbsp;TalendDate.parseDate("yyyy-MM-dd'T'HH:mm:ssXXX",Date Column)&lt;/P&gt;&lt;P&gt;I am getting the result as "2019-01-10 05:35:00.000" (1 hour less than the actual).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to fix this ???&lt;/P&gt;</description>
    <pubDate>Tue, 26 Feb 2019 22:55:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-02-26T22:55:57Z</dc:date>
    <item>
      <title>XML Date Conversion Issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-Date-Conversion-Issue/m-p/2199417#M2336</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the XML file, i get value of date column as "2019-01-10T06:35:00-04:00" . where "-04:00" is specifying time zone(GMT).&lt;/P&gt;&lt;P&gt;Now while converting the date using&amp;nbsp;TalendDate.parseDate("yyyy-MM-dd'T'HH:mm:ssXXX",Date Column)&lt;/P&gt;&lt;P&gt;I am getting the result as "2019-01-10 05:35:00.000" (1 hour less than the actual).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to fix this ???&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 22:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-Date-Conversion-Issue/m-p/2199417#M2336</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-26T22:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: XML Date Conversion Issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-Date-Conversion-Issue/m-p/2199418#M2337</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; I tried the fnction&amp;nbsp;TalendDate.parseDate("yyyy-MM-dd'T'HH:mm:ssXXX",row1.data)&amp;nbsp; and it is showing right results. The different formats can be referred from below link.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But if you are looking to change the target column's date to some other format, you will need to specify it explicitly. Else it will process it with default time zone.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 02:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-Date-Conversion-Issue/m-p/2199418#M2337</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-27T02:59:51Z</dc:date>
    </item>
  </channel>
</rss>

