<?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: convert string to datetime for csv file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/convert-string-to-datetime-for-csv-file/m-p/2295306#M68090</link>
    <description>Hi Sabrina,
&lt;BR /&gt;my date data sample is like this:
&lt;BR /&gt;12/2/2012 0:00
&lt;BR /&gt;12/2/2012 0:00
&lt;BR /&gt;12/2/2012 0:00
&lt;BR /&gt;12/2/2012 0:01
&lt;BR /&gt;I already try the way what you did but got error : 
&lt;BR /&gt;java.lang.NumberFormatException: For input string: "12/2"
&lt;BR /&gt; at java.lang.NumberFormatException.forInputString(Unknown Source)
&lt;BR /&gt; at java.lang.Integer.parseInt(Unknown Source)
&lt;BR /&gt; at java.lang.Integer.parseInt(Unknown Source)
&lt;BR /&gt; at routines.system.FastDateParser$DateTimeParser.parse(FastDateParser.java:206)
&lt;BR /&gt; at routines.system.ParserUtils.parseTo_Date(ParserUtils.java:208)
&lt;BR /&gt; at uc.testdate_0_1.testDate$1RowHelper_tFileInputDelimited_1.valueToConn(testDate.java:992)
&lt;BR /&gt; at uc.testdate_0_1.testDate.tFileInputDelimited_1Process(testDate.java:1147)
&lt;BR /&gt; at uc.testdate_0_1.testDate.runJobInTOS(testDate.java:1566)
&lt;BR /&gt; at uc.testdate_0_1.testDate.main(testDate.java:1434)
&lt;BR /&gt;Unparseable date: "12/2/2012 0:00"
&lt;BR /&gt;Do you have any idea? For excel source file it work fine but only for csv file got error for date..
&lt;BR /&gt;Regards,
&lt;BR /&gt;Ommie</description>
    <pubDate>Tue, 05 Mar 2013 10:03:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-03-05T10:03:29Z</dc:date>
    <item>
      <title>convert string to datetime for csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-string-to-datetime-for-csv-file/m-p/2295304#M68088</link>
      <description>Hi,&lt;BR /&gt;I have a csv file contain string date '12/2/2012 5:47'. I convert to datetime but I got this error Unparseable date: "12/2/2012 5:47"&lt;BR /&gt;I try to save the file to excel it work. but for csv it become an error.&lt;BR /&gt;Please anyone help me....&lt;BR /&gt;Regards,&lt;BR /&gt;Ommie</description>
      <pubDate>Sat, 16 Nov 2024 12:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-string-to-datetime-for-csv-file/m-p/2295304#M68088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: convert string to datetime for csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-string-to-datetime-for-csv-file/m-p/2295305#M68089</link>
      <description>Hi omie, 
&lt;BR /&gt;I have designed a demo job and made a testing for it. The job works well. Could you give us more info, such as your job screenshots and Date pattern so that we can address your issue quickly. 
&lt;BR /&gt;See my job screenshots as follows: 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME1x.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136714iDF6DB4BB9CA55C3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME1x.png" alt="0683p000009ME1x.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME22.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150200i8D9C54F2F48D8DFF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME22.png" alt="0683p000009ME22.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME27.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132878i68D522829B6175CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME27.png" alt="0683p000009ME27.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME2C.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136874i95305AAF2ED5D09B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME2C.png" alt="0683p000009ME2C.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 05 Mar 2013 05:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-string-to-datetime-for-csv-file/m-p/2295305#M68089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-05T05:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: convert string to datetime for csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-string-to-datetime-for-csv-file/m-p/2295306#M68090</link>
      <description>Hi Sabrina,
&lt;BR /&gt;my date data sample is like this:
&lt;BR /&gt;12/2/2012 0:00
&lt;BR /&gt;12/2/2012 0:00
&lt;BR /&gt;12/2/2012 0:00
&lt;BR /&gt;12/2/2012 0:01
&lt;BR /&gt;I already try the way what you did but got error : 
&lt;BR /&gt;java.lang.NumberFormatException: For input string: "12/2"
&lt;BR /&gt; at java.lang.NumberFormatException.forInputString(Unknown Source)
&lt;BR /&gt; at java.lang.Integer.parseInt(Unknown Source)
&lt;BR /&gt; at java.lang.Integer.parseInt(Unknown Source)
&lt;BR /&gt; at routines.system.FastDateParser$DateTimeParser.parse(FastDateParser.java:206)
&lt;BR /&gt; at routines.system.ParserUtils.parseTo_Date(ParserUtils.java:208)
&lt;BR /&gt; at uc.testdate_0_1.testDate$1RowHelper_tFileInputDelimited_1.valueToConn(testDate.java:992)
&lt;BR /&gt; at uc.testdate_0_1.testDate.tFileInputDelimited_1Process(testDate.java:1147)
&lt;BR /&gt; at uc.testdate_0_1.testDate.runJobInTOS(testDate.java:1566)
&lt;BR /&gt; at uc.testdate_0_1.testDate.main(testDate.java:1434)
&lt;BR /&gt;Unparseable date: "12/2/2012 0:00"
&lt;BR /&gt;Do you have any idea? For excel source file it work fine but only for csv file got error for date..
&lt;BR /&gt;Regards,
&lt;BR /&gt;Ommie</description>
      <pubDate>Tue, 05 Mar 2013 10:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-string-to-datetime-for-csv-file/m-p/2295306#M68090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-05T10:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: convert string to datetime for csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-string-to-datetime-for-csv-file/m-p/2295307#M68091</link>
      <description>Hi, 
&lt;BR /&gt;Everything is OK on my version Talend Open Studio for Data Integration(5.2.1r95165). How about checking out the option "Trim all column" in the advance setting of tFileInputDelimited component and make sure that there is no extra space in your "Date pattern" 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME2H.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150008iA91B7AC2DDA61178/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME2H.png" alt="0683p000009ME2H.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 05 Mar 2013 10:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-string-to-datetime-for-csv-file/m-p/2295307#M68091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-05T10:30:39Z</dc:date>
    </item>
  </channel>
</rss>

