<?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: talend date conversion issue in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220965#M15156</link>
    <description>&lt;P&gt;Well&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&amp;nbsp;is once again correct!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is what the 'test' in the expression builder looks like and what it returned.&amp;nbsp; But I still need a different output format....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Expression:&amp;nbsp;&amp;nbsp;TalendDate.&lt;SPAN class="s1"&gt;parseDate&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;"yyyy-MM-dd'T'HH:mm:ss.sss'Z'"&lt;/SPAN&gt;,row4.statechangedate )&lt;/P&gt; 
&lt;P class="p1"&gt;Test Value:&amp;nbsp;&amp;nbsp;2017-03-30T18:40:49.953Z&lt;/P&gt; 
&lt;P class="p1"&gt;Test Result:&amp;nbsp;&amp;nbsp;Thu Mar 30 18:55:53 EDT 2017&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;Almost there....I'm looking for: 2017-03-30 18:55:53 (no day of week, no timezone)&lt;/P&gt; 
&lt;P class="p1"&gt;So while the Expression Builder test worked, when i then try to run the job and output to tLogRow, I get the attached error.&amp;nbsp; Perhaps it's b/c 1) the JSON is actually returning a string that needs to be converted or 2) I have a field type set incorrectly somewhere?&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Luk5"&gt;Talend_date_error.docx&lt;/A&gt;</description>
    <pubDate>Mon, 28 Jan 2019 01:45:39 GMT</pubDate>
    <dc:creator>bradsheridan</dc:creator>
    <dc:date>2019-01-28T01:45:39Z</dc:date>
    <item>
      <title>talend date conversion issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220962#M15153</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&amp;nbsp;hoping you can help me (yet again &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;) !&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;here is a line from a JSON response that I'm getting from Microsoft TFS:&lt;/P&gt; 
&lt;P&gt;"Microsoft.VSTS.Common.StateChangeDate": "2017-03-30T18:40:49.953Z"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What I'm trying to do is store this date in my Redshift table which is set as type TIMESTAMP.&amp;nbsp; I would like the value to be:&lt;/P&gt; 
&lt;P&gt;2017-03-30 06:40:49&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've tried several routines under the TalendDate section in my tMap Expression Builder, but get all kinds of different errors.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thoughts??&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;thanks!!!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 00:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220962#M15153</guid>
      <dc:creator>bradsheridan</dc:creator>
      <dc:date>2019-01-28T00:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: talend date conversion issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220963#M15154</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what's wrong with:&lt;/P&gt;&lt;PRE&gt;TalendDate.parseDate("yyyy-MM-dd'T'HH:mm:ss.sss'Z'",row1.str) &lt;/PRE&gt;&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 01:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220963#M15154</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-01-28T01:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: talend date conversion issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220964#M15155</link>
      <description>&lt;P&gt;Once again&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&amp;nbsp;, thanks so much for the speedy reply.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm pretty sure I've tried that...it looks familiar.&amp;nbsp; That being said, I've tried about 1MM different things &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; . Let me give it a whirl....&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 01:19:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220964#M15155</guid>
      <dc:creator>bradsheridan</dc:creator>
      <dc:date>2019-01-28T01:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: talend date conversion issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220965#M15156</link>
      <description>&lt;P&gt;Well&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&amp;nbsp;is once again correct!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is what the 'test' in the expression builder looks like and what it returned.&amp;nbsp; But I still need a different output format....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Expression:&amp;nbsp;&amp;nbsp;TalendDate.&lt;SPAN class="s1"&gt;parseDate&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;"yyyy-MM-dd'T'HH:mm:ss.sss'Z'"&lt;/SPAN&gt;,row4.statechangedate )&lt;/P&gt; 
&lt;P class="p1"&gt;Test Value:&amp;nbsp;&amp;nbsp;2017-03-30T18:40:49.953Z&lt;/P&gt; 
&lt;P class="p1"&gt;Test Result:&amp;nbsp;&amp;nbsp;Thu Mar 30 18:55:53 EDT 2017&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;Almost there....I'm looking for: 2017-03-30 18:55:53 (no day of week, no timezone)&lt;/P&gt; 
&lt;P class="p1"&gt;So while the Expression Builder test worked, when i then try to run the job and output to tLogRow, I get the attached error.&amp;nbsp; Perhaps it's b/c 1) the JSON is actually returning a string that needs to be converted or 2) I have a field type set incorrectly somewhere?&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Luk5"&gt;Talend_date_error.docx&lt;/A&gt;</description>
      <pubDate>Mon, 28 Jan 2019 01:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220965#M15156</guid>
      <dc:creator>bradsheridan</dc:creator>
      <dc:date>2019-01-28T01:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: talend date conversion issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220966#M15157</link>
      <description>&lt;PRE&gt;[statistics] connecting to socket on port 3617
[statistics] connected
2017-03-30 18:55:53
[statistics] disconnected&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;something wrong&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 02:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220966#M15157</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-01-28T02:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: talend date conversion issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220967#M15158</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 02:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220967#M15158</guid>
      <dc:creator>bradsheridan</dc:creator>
      <dc:date>2019-01-28T02:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: talend date conversion issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220968#M15159</link>
      <description>&lt;P&gt;btw, it not important - what it print&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if column type datetime&amp;nbsp;- it will insert the proper value into redshift&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 02:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220968#M15159</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-01-28T02:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: talend date conversion issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220969#M15160</link>
      <description>&lt;P&gt;somehow I got this solved and without any Date functions....weird.&amp;nbsp; So I thought I'd share with the Community.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have:&lt;BR /&gt;tRestClient -&amp;gt; tExtractJSONFields -&amp;gt; tMap -&amp;gt; Redshift&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The important parts that made my job work with a TZ type timestamp field are:&lt;/P&gt; 
&lt;P&gt;1) Date fields on database table need to be of TIMESTAMP format&lt;/P&gt; 
&lt;P&gt;2) the output schema of the tExtractJSONFields need to have a 'date pattern' of:&amp;nbsp;&lt;SPAN&gt;"yyyy-MM-dd HH:mm:ss"&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;3) the output schema of the tMap need to have a 'date pattern' of:&amp;nbsp;"yyyy-MM-dd'T'HH:mm:ss"&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Hope this helps someone with the same struggle I had.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thanks again to&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&amp;nbsp;for providing guidance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 15:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/talend-date-conversion-issue/m-p/2220969#M15160</guid>
      <dc:creator>bradsheridan</dc:creator>
      <dc:date>2019-01-29T15:05:53Z</dc:date>
    </item>
  </channel>
</rss>

