<?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: How to convert a special date in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225144#M17569</link>
    <description>&lt;P&gt;&lt;SPAN&gt;TalendDate.formatDate("yyyy/MM/dd HH:mm:ss", TalendDate.parseDate("MMM dd';' yyyy HH:mm:ss", row1.newColumn1 ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error you posted above is occurring because at least one row in row1.newColumn1 has a value of "Begin Date" which can't be parsed as a date.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2017 19:55:44 GMT</pubDate>
    <dc:creator>cterenzi</dc:creator>
    <dc:date>2017-04-24T19:55:44Z</dc:date>
    <item>
      <title>How to convert a special date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225138#M17563</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to convert this kind a date below in date format please .&lt;/P&gt;
&lt;P&gt;My code below isn't working .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you help me please&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TalendDate.formatDate("yyyy-MM-dd", TalendDate.parseDate("MMM dd';' yyyy HH:mm:ss", row1.newColumn1 ) &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the date to convert .(date in the&amp;nbsp;&lt;SPAN&gt;row1.newColumn1)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dec 1; 2016 00:00:00&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Capsi&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2017 21:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225138#M17563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-23T21:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a special date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225139#M17564</link>
      <description>&lt;P&gt;Sorry ,&lt;/P&gt;&lt;P&gt;find below the date to convert .(date in the&amp;nbsp;&lt;SPAN&gt;row1.newColumn1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dec 1; 2016 00:00:00&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2017 21:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225139#M17564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-23T21:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a special date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225140#M17565</link>
      <description>&lt;P&gt;Your formula works for me in a tMap (after correcting the missing ')' at the end). &amp;nbsp;Where are you trying to use the formula and what error are you receiving?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 16:38:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225140#M17565</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-04-24T16:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a special date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225141#M17566</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm trying to use the formula in a "constructeur d'expression of a tmap "&lt;/P&gt; 
&lt;P&gt;I don't understand what parenthis missing .&lt;/P&gt; 
&lt;P&gt;TalendDate.formatDate("yyyy-MM-dd", TalendDate.parseDate("MMM dd; yyyy HH:mm:ss", row1.newColumn1 ))&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;below the error .&lt;/P&gt; 
&lt;P&gt;Thanks a lot&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Démarrage du job secondJob a 18:31 24/04/2017.&lt;BR /&gt;[statistics] connecting to socket on port 3458&lt;BR /&gt;[statistics] connected&lt;BR /&gt;Exception in component tMap_1&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "Begin date"&lt;BR /&gt;at routines.TalendDate.parseDate(TalendDate.java:895)&lt;BR /&gt;at routines.TalendDate.parseDate(TalendDate.java:839)&lt;BR /&gt;at local_project.secondjob_0_1.secondJob.tFileInputDelimited_1Process(secondJob.java:1046)&lt;BR /&gt;at local_project.secondjob_0_1.secondJob.runJobInTOS(secondJob.java:1484)&lt;BR /&gt;at local_project.secondjob_0_1.secondJob.main(secondJob.java:1341)&lt;BR /&gt;[statistics] disconnected&lt;BR /&gt;Caused by: java.text.ParseException: Unparseable date: "Begin date"&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;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 17:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225141#M17566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-24T17:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a special date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225142#M17567</link>
      <description>That error means "Begin date" appears in your data where Talend is expecting a date. Perhaps your input data has a header record which needs to be skipped?</description>
      <pubDate>Mon, 24 Apr 2017 19:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225142#M17567</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-04-24T19:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a special date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225143#M17568</link>
      <description>&lt;P&gt;Sorry ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you tell me how to convert this date (&lt;SPAN&gt;Dec 1; 2016 00:00:00) to (2016/12/01 00:00:00) in talend please ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which code to pout in the tmap please ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 19:28:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225143#M17568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-24T19:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a special date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225144#M17569</link>
      <description>&lt;P&gt;&lt;SPAN&gt;TalendDate.formatDate("yyyy/MM/dd HH:mm:ss", TalendDate.parseDate("MMM dd';' yyyy HH:mm:ss", row1.newColumn1 ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error you posted above is occurring because at least one row in row1.newColumn1 has a value of "Begin Date" which can't be parsed as a date.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 19:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225144#M17569</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-04-24T19:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a special date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225145#M17570</link>
      <description>&lt;P&gt;The error you talking about was because i get a header in my file to load .&lt;/P&gt;
&lt;P&gt;after modifying the configuration of my composant tfileInputDelimited_1 &amp;nbsp;I get the following error with the code you sent .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have any idea please ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Démarrage du job secondJob a 21:31 24/04/2017.&lt;BR /&gt;[statistics] connecting to socket on port 3945&lt;BR /&gt;[statistics] connected&lt;BR /&gt;Exception in component tMap_1&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "Dec 1; 2016 00:00:00"&lt;BR /&gt;at routines.TalendDate.parseDate(TalendDate.java:895)&lt;BR /&gt;at routines.TalendDate.parseDate(TalendDate.java:839)&lt;BR /&gt;at local_project.secondjob_0_1.secondJob.tFileInputDelimited_1Process(secondJob.java:1277)&lt;BR /&gt;at local_project.secondjob_0_1.secondJob.runJobInTOS(secondJob.java:1717)&lt;BR /&gt;at local_project.secondjob_0_1.secondJob.main(secondJob.java:1574)&lt;BR /&gt;Caused by: java.text.ParseException: Unparseable date: "Dec 1; 2016 00:00:00"&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;BR /&gt;Job secondJob terminé à 21:31 24/04/2017. [Code sortie=1]&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 20:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225145#M17570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-24T20:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a special date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225146#M17571</link>
      <description>&lt;P&gt;You'll need to provide additional information to solve the issue then. &amp;nbsp;Here are my tMap expression and my job output. &amp;nbsp;In the job output, col1 is the input string and col2 is the result of the expression.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Talend expression builder.png" style="width: 463px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ltrp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143796i24EC2C7818B38F35/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ltrp.png" alt="0683p000009Ltrp.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;PRE&gt;[statistics] connecting to socket on port 3814
[statistics] connected
Dec 1; 2016 00:00:00|2016/12/01 00:00:00
Dec 1; 2016 00:00:00|2016/12/01 00:00:00
Dec 2; 2016 00:00:00|2016/12/02 00:00:00
Dec 3; 2016 00:00:00|2016/12/03 00:00:00
Dec 4; 2017 00:00:00|2017/12/04 00:00:00
[statistics] disconnected
Job test ended at 15:40 24/04/2017. [exit code=0]&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Apr 2017 20:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225146#M17571</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-04-24T20:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a special date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225147#M17572</link>
      <description>&lt;P&gt;OK.please find below the additionnal informations&lt;/P&gt; 
&lt;P&gt;Below the content of the file what i'm trying to load and a screenshot of my tmap.&lt;/P&gt; 
&lt;P&gt;Hope it will clear for you to help me .&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&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="tmap.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LthR.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136368i5FC579835EE7D8D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LthR.jpg" alt="0683p000009LthR.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;TT,Begin date,End date,Watched,Impulsive,Conditional&lt;BR /&gt;10,Dec 1; 2016 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;18,Dec 1; 2016 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;19,Dec 1; 2016 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;32,Dec 1; 2016 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;41,Dec 1; 2016 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;42,Dec 1; 2016 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;50,Dec 1; 2016 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;63,Dec 1; 2016 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;68,Dec 1; 2016 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 20:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225147#M17572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-24T20:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a special date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225148#M17573</link>
      <description>&lt;P&gt;While I would not have used a tMap variable in this case--instead I put the date expression directly in the output column--I recreated your tMap and still don't receive an error. &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best I can come up with is that there's a language or locale issue here. &amp;nbsp;If your system is set to use a French locale, it may be expecting "déc." when parsing "MMM" and rejecting "dec" as invalid. &amp;nbsp;I don't have experience with non-English locales, unfortunately.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 21:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225148#M17573</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-04-24T21:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a special date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225149#M17574</link>
      <description>&lt;P&gt;It's working !!!!!!, your are just a master .&lt;/P&gt; 
&lt;P&gt;After you last post about the locale settings , I change my code and it's working fine .&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please see below my code and the output and thank you so much .&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="tmap.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LthH.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147069i7D2E4F0EE564A510/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LthH.jpg" alt="0683p000009LthH.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;10,2016/12/01 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;18,2016/12/01 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;19,2016/12/01 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;32,2016/12/01 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;41,2016/12/01 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;42,2016/12/01 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;50,2016/12/01 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;63,2016/12/01 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;68,2016/12/01 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;69,2016/12/01 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;70,2016/12/01 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;71,2016/12/01 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;72,2016/12/01 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;73,2016/12/01 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;74,2016/12/01 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;BR /&gt;75,2016/12/01 00:00:00,Dec 1; 2036 23:59:56,N/A,N/A,NO&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 21:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-a-special-date/m-p/2225149#M17574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-24T21:35:05Z</dc:date>
    </item>
  </channel>
</rss>

