<?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: Help - Converting String format in excel to time format in db in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315795#M86416</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As per the data you provided P_E attribute data look different than you mentioned.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dateConversion1.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxOo.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132357i9E2C1F64E5340D81/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxOo.png" alt="0683p000009LxOo.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 May 2018 19:47:38 GMT</pubDate>
    <dc:creator>vboppudi</dc:creator>
    <dc:date>2018-05-08T19:47:38Z</dc:date>
    <item>
      <title>Help - Converting String format in excel to time format in db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315790#M86411</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have an excel file with a column that has data in this format: 09:00:00 (timestramp)&lt;/P&gt; 
&lt;P&gt;I need to convert from string (as talend is reading) to time (hh:mm) format in Database.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried doing this:&lt;/P&gt; 
&lt;P&gt;TalendDate.parseDate("HH:mm",row1.P_E)&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Error I'm getting:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;t 14:01 08/05/2018.

[statistics] connecting to socket on port 3865
[statistics] connected
java.lang.NumberFormatException: For input string: "Sun "
	at java.lang.NumberFormatException.forInputString(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at routines.system.FastDateParser$DateTimeParser.parse(FastDateParser.java:206)
	at java.text.DateFormat.parse(Unknown Source)
	at routines.TalendDate.parseDate(TalendDate.java:884)
	at routines.TalendDate.parseDate(TalendDate.java:842)
	at mip_citelum.jb_08_mip_protocolos_0_1.jb_08_mip_protocolos.tFileInputExcel_1Process(jb_08_mip_protocolos.java:3716)
	at mip_citelum.jb_08_mip_protocolos_0_1.jb_08_mip_protocolos.runJobInTOS(jb_08_mip_protocolos.java:5353)
	at mip_citelum.jb_08_mip_protocolos_0_1.jb_08_mip_protocolos.main(jb_08_mip_protocolos.java:5202)
Exception in component tMap_1 (jb_08_mip_protocolos)
java.lang.RuntimeException: java.text.ParseException: Unparseable date: "Sun Dec 31 15:00:00 BRT 1899"
	at routines.TalendDate.parseDate(TalendDate.java:898)
	at routines.TalendDate.parseDate(TalendDate.java:842)
	at mip_citelum.jb_08_mip_protocolos_0_1.jb_08_mip_protocolos.tFileInputExcel_1Process(jb_08_mip_protocolos.java:3716)
	at mip_citelum.jb_08_mip_protocolos_0_1.jb_08_mip_protocolos.runJobInTOS(jb_08_mip_protocolos.java:5353)
	at mip_citelum.jb_08_mip_protocolos_0_1.jb_08_mip_protocolos.main(jb_08_mip_protocolos.java:5202)
Caused by: java.text.ParseException: Unparseable date: "Sun Dec 31 15:00:00 BRT 1899"
	at java.text.DateFormat.parse(Unknown Source)
	at routines.TalendDate.parseDate(TalendDate.java:884)
	... 4 more
[statistics] disconnected
Job jb_08_mip_protocolos ended at 14:01 08/05/2018. [exit code=1]&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 18:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315790#M86411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-08T18:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help - Converting String format in excel to time format in db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315791#M86412</link>
      <description>&lt;P&gt;Are you looking for the following output?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dateConversion.PNG" style="width: 719px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxPb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142169iCDC627255919C4DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxPb.png" alt="0683p000009LxPb.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Use :TalendDate.parseDate("HH:mm:ss",row2.DATE_HHMM)&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 19:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315791#M86412</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-05-08T19:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help - Converting String format in excel to time format in db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315792#M86413</link>
      <description>&lt;P&gt;Yes, that's what i'm trying to do. But like I said before, I tried this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;TalendDate.parseDate("HH:mm",row1.P_E)&amp;nbsp; already and it gives me the error that I posted.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 19:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315792#M86413</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-08T19:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help - Converting String format in excel to time format in db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315793#M86414</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please provide some sample source data. i think the error "&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;For input string: "Sun "&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;related to input data.&amp;nbsp; What is the data type of output attribute?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 19:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315793#M86414</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-05-08T19:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help - Converting String format in excel to time format in db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315794#M86415</link>
      <description>&lt;P&gt;The input datatype is String;&lt;/P&gt;&lt;P&gt;The output datatype in talend is Date;&lt;/P&gt;&lt;P&gt;The output datatype in my DB is Time (hh:mm:ss)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In attach is the excel source.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsWP"&gt;Ocorrências.xlsx&lt;/A&gt;</description>
      <pubDate>Tue, 08 May 2018 19:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315794#M86415</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-08T19:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help - Converting String format in excel to time format in db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315795#M86416</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As per the data you provided P_E attribute data look different than you mentioned.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dateConversion1.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxOo.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132357i9E2C1F64E5340D81/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxOo.png" alt="0683p000009LxOo.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 19:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315795#M86416</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-05-08T19:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help - Converting String format in excel to time format in db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315796#M86417</link>
      <description>&lt;P&gt;Yes, because somehow talend is doing this, but if you open the excel, the column is HH:MM&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9p6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134116iFBD5D7F21624A744/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9p6.png" alt="0683p000009M9p6.png" /&gt;&lt;/span&gt;S.&lt;/P&gt; 
&lt;P&gt;In any case, do you how I can get the HH:MM of the P_E column?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 19:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315796#M86417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-08T19:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help - Converting String format in excel to time format in db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315797#M86418</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;While reading data from excel you have to settings to read data from excel in required format.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DateConve.PNG" style="width: 674px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxIX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128016iDDDB67C9F8948FBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxIX.png" alt="0683p000009LxIX.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DateConve1.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxUF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148522iE0DB675317CE65C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxUF.png" alt="0683p000009LxUF.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DateConve2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxGz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157026iCAB6F8C759A482C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxGz.png" alt="0683p000009LxGz.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 20:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315797#M86418</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-05-08T20:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help - Converting String format in excel to time format in db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315798#M86419</link>
      <description>&lt;P&gt;Thank you very much for you assistance. It worked.&lt;/P&gt;&lt;P&gt;God bless.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 20:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Help-Converting-String-format-in-excel-to-time-format-in-db/m-p/2315798#M86419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-08T20:39:12Z</dc:date>
    </item>
  </channel>
</rss>

