<?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: CSV Dates in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308684#M79987</link>
    <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;I have read your question and concern ,Could you please let me know ,If date is "31/12/2016" what will be the "Date format" and "Week Date value" in your csv.?&amp;nbsp;&lt;BR /&gt;Why you are getting error &amp;nbsp;.b/c In order to run "Parsedate " routine &amp;nbsp;you have to pass the correct &amp;nbsp;and fixed format &amp;nbsp;(Your csv should have fixed format ) then this rountine will work.</description>
    <pubDate>Sat, 31 Dec 2016 15:40:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-12-31T15:40:01Z</dc:date>
    <item>
      <title>CSV Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308675#M79978</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am importing CSV files and have two date columns. In my CSV the two columns show numbers (43705, 45673, etc...). I am designating the two columns as Strings in the tFileInputDelimited and using tConvert to convert two strings into integers and then in tMap I am using routines.TalendDate.parsedate("MM/dd/yyyy", row1.Source) and routines.TalendDate.parsedate("MM/dd/yyyy", row1.Week) it still shows an error.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG96.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128173i2813DC6353D0578B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG96.png" alt="0683p000009MG96.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Exception in component tMap_1&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "42715"&lt;BR /&gt;at routines.TalendDate.parseDate(TalendDate.java:895)&lt;BR /&gt;at routines.TalendDate.parseDate(TalendDate.java:839)&lt;BR /&gt;at rehearsalproject.infocsv_0_1.infocsv.tFileInputDelimited_1Process(infocsv.java:2369)&lt;BR /&gt;at rehearsalproject.infocsv_0_1.infocsv.runJobInTOS(infocsv.java:3084)&lt;BR /&gt;at rehearsalproject.infocsv_0_1.infocsv.main(infocsv.java:2941)&lt;BR /&gt;Caused by: java.text.ParseException: Unparseable date: "42715"&lt;BR /&gt;at java.text.DateFormat.parse(Unknown Source)&lt;BR /&gt;at routines.TalendDate.parseDate(TalendDate.java:881)&lt;BR /&gt;... 4 more&lt;BR /&gt;[statistics] disconnected&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 15:09:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308675#M79978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-28T15:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308676#M79979</link>
      <description>Hi?&lt;BR /&gt;We have replied to your another topic. Please stick to one topic so that we can pay individule attention to your issue?&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 29 Dec 2016 08:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308676#M79979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-29T08:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308677#M79980</link>
      <description>Hi Shong,
&lt;BR /&gt;I have a csv file in which the date field is defined as 42772.0. I tried everything tconvert and tmap. I set the field as String in the tfileinputdelimited and in tmap did TalendDate.parseDate("MM/dd/yyyy",row1.myDate) still it threw out an error:
&lt;BR /&gt;UnparseableDate: 42772.0. I even tried the parseDatelocale("MM/dd/yyyy",row1.myDate,"EN") it still threw an error.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;And in tconvert I set the column as float in tfileinputdelimited and then in tconvert I did Date MM/dd/yyyy and then tmap but even then it threw out an error.
&lt;BR /&gt;
&lt;BR /&gt;I have read numerous posts on this but all futile.
&lt;BR /&gt;
&lt;BR /&gt;I have read that knowing java can ease matters in Talend.
&lt;BR /&gt;
&lt;BR /&gt;Can I use tjava or javaflex or javarow (I have not used these before nor do I know Java)? So if you suggest this route please do show a vivid way on how I can use here.
&lt;BR /&gt;
&lt;BR /&gt;Please provide assistance on what do you recommended.
&lt;BR /&gt;
&lt;BR /&gt;My current staging:
&lt;BR /&gt;
&lt;BR /&gt;tfileinputdelimited ------------------tmap----------------toutputpostgresql</description>
      <pubDate>Fri, 30 Dec 2016 03:58:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308677#M79980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-30T03:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308678#M79981</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;the source data is number&amp;nbsp;43705, apparently, it doesn't map any date pattern. What is it? is it a milliseconds of a date?&amp;nbsp;What date can map to the number 43705 in your case?&amp;nbsp; 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 30 Dec 2016 10:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308678#M79981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-30T10:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308679#M79982</link>
      <description>Exception in component tMap_1 
&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "42722.0" 
&lt;BR /&gt;at routines.TalendDate.parseDateLocale(TalendDate.java:1011) 
&lt;BR /&gt;at rehearsalproject.infocsv_0_1.infocsv.tFileInputDelimited_1Process(infocsv.java:1837) 
&lt;BR /&gt;at rehearsalproject.infocsv_0_1.infocsv.runJobInTOS(infocsv.java:2616) 
&lt;BR /&gt;at rehearsalproject.infocsv_0_1.infocsv.main(infocsv.java:2473) 
&lt;BR /&gt;Caused by: java.text.ParseException: Unparseable date: "42722.0" 
&lt;BR /&gt;at java.text.DateFormat.parse(Unknown Source) 
&lt;BR /&gt;at routines.TalendDate.parseDateLocale(TalendDate.java:1009) 
&lt;BR /&gt;... 3 more 
&lt;BR /&gt; 
&lt;BR /&gt;This is the screenshot from the csv I am loading into the database. Talend adds a zero at the end and makes it 42722.0. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/398498/Capture_20161230-0525.png" target="_blank"&gt;&amp;nbsp;&lt;/A&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/398498/Capture_20161230-0525.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG91.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142723i738D3B7A4ADE3A15/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG91.png" alt="0683p000009MG91.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;When I MANUALLY change the number format to short date in the csv. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG59.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133297i528F95AA9F77ACBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG59.png" alt="0683p000009MG59.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 30 Dec 2016 13:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308679#M79982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-30T13:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308680#M79983</link>
      <description>If you are able to change the correct date format, read the columns with Date type from CSV file, and set its pattern as "MM/dd/yyyy".</description>
      <pubDate>Fri, 30 Dec 2016 17:21:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308680#M79983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-30T17:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308681#M79984</link>
      <description>Hi Shong,
&lt;BR /&gt;I know I can do it manually I want to know how I can convert the 42770.0 in Talend to the desired date MM/dd/yyyy. If I have hundreds of CSVs I cannot be manually changing the date formats of all them. Please provide assistance.</description>
      <pubDate>Fri, 30 Dec 2016 20:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308681#M79984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-30T20:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308682#M79985</link>
      <description>Hi 
&lt;BR /&gt;Which component do you use to read this CSV? To be honest, I don't know what's the formula can be used to convert the number 42770.0 to a Date, would you mind send me an example CSV file for further investigation. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Sat, 31 Dec 2016 06:08:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308682#M79985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-31T06:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308683#M79986</link>
      <description>Week &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Date 
&lt;BR /&gt;42722 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;42717 
&lt;BR /&gt;42722 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;42717 
&lt;BR /&gt;42722 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;42719 
&lt;BR /&gt;42722 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;42721 
&lt;BR /&gt; 
&lt;BR /&gt;Here Shong, 
&lt;BR /&gt; 
&lt;BR /&gt;Please copy and paste this into an Excel Worksheet and save it as an csv file. And then please let me know how would you transform the Week and Date fields as Date MM/dd/yyyy in Talend and then loaded into Database. Currently, I am having all kinds of difficulty converting the data types in Talend. I have tried parseDate, formatDate, parseDatelocale and ALL futile. I have lots of csv files I really require your assistance. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks</description>
      <pubDate>Sat, 31 Dec 2016 13:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308683#M79986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-31T13:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308684#M79987</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;I have read your question and concern ,Could you please let me know ,If date is "31/12/2016" what will be the "Date format" and "Week Date value" in your csv.?&amp;nbsp;&lt;BR /&gt;Why you are getting error &amp;nbsp;.b/c In order to run "Parsedate " routine &amp;nbsp;you have to pass the correct &amp;nbsp;and fixed format &amp;nbsp;(Your csv should have fixed format ) then this rountine will work.</description>
      <pubDate>Sat, 31 Dec 2016 15:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308684#M79987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-31T15:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308685#M79988</link>
      <description>Thanks Harkirat,&lt;BR /&gt;I want the date format MM/dd/yyyy as 12/31/2016. But I thought parseDate(String ----&amp;gt; Date) can be used here. So if I have 100 csvs I have to rectify all the date formats for all the csvs. Is there anyway I can have string as data type in tfileinputdelimited and in tmap do TalendDate.parsedate("MM/dd/yyyy".row1.MyDate) for all the date values? Manually formatting ALL the csvs to the proper date format will be quiet an hassle.</description>
      <pubDate>Sat, 31 Dec 2016 23:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308685#M79988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-31T23:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308686#M79989</link>
      <description>Hi Sabrina,&lt;BR /&gt;&lt;BR /&gt;Can you help me with my problem please? I am facing difficulties converting data types.</description>
      <pubDate>Tue, 03 Jan 2017 03:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308686#M79989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-03T03:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308687#M79990</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;FONT size="2"&gt;&lt;FONT face="Verdana," helvetica=""&gt;When I MANUALLY change the number format to short date in the csv.&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;It does not display corresponding date if I change the number of format to a short date, the number 42722 does not match any date format, so it can not be parsed to a date.&amp;nbsp; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 03 Jan 2017 05:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308687#M79990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-03T05:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308688#M79991</link>
      <description>Thanks Sabrina, for being explicit with me.</description>
      <pubDate>Tue, 03 Jan 2017 14:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-Dates/m-p/2308688#M79991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-03T14:37:15Z</dc:date>
    </item>
  </channel>
</rss>

