<?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: Error in converting string to Date in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284105#M57870</link>
    <description>&lt;P&gt;it's normal the data is of different type because the the function you gave is yyyy-mm-dd&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now you can change the format to dd-mm-yyyyy ,try and see and tell me what it gives&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jan 2019 10:53:05 GMT</pubDate>
    <dc:creator>Manoj_MUTHURAJA</dc:creator>
    <dc:date>2019-01-14T10:53:05Z</dc:date>
    <item>
      <title>Error in converting string to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284101#M57866</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have used below code to convert from string to date , but still I'm getting the below errors&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="utilCode.png" style="width: 631px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1vG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153525iC0856373EAA357A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1vG.png" alt="0683p000009M1vG.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have used below expression&lt;/P&gt; 
&lt;P&gt;routines.utils.stringToDate(row2.StartDate,&amp;nbsp; "dd-MM-yyyy")&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;and I'm getting below error&lt;/P&gt; 
&lt;P&gt;java.text.ParseException: Unparseable date: "1/1/2019"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.text.DateFormat.parse(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at routines.utils.stringToDate(utils.java:707)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at sf_atos.testing_0_1.testing.tFixedFlowInput_2Process(testing.java:896)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at sf_atos.testing_0_1.testing.runJobInTOS(testing.java:2104)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at sf_atos.testing_0_1.testing.main(testing.java:1948)&lt;BR /&gt;java.text.ParseException: Unparseable date: "25/01/2019"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.text.DateFormat.parse(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at routines.utils.stringToDate(utils.java:707)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at sf_atos.testing_0_1.testing.tFixedFlowInput_2Process(testing.java:896)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at sf_atos.testing_0_1.testing.runJobInTOS(testing.java:2104)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at sf_atos.testing_0_1.testing.main(testing.java:1948)&lt;BR /&gt;.---------.&lt;BR /&gt;|tLogRow_2|&lt;BR /&gt;|=-------=|&lt;BR /&gt;|StartDate|&lt;BR /&gt;|=-------=|&lt;BR /&gt;|null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;BR /&gt;|null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;BR /&gt;'---------'&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The output is coming null&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 07:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284101#M57866</guid>
      <dc:creator>amitdadri</dc:creator>
      <dc:date>2019-01-14T07:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error in converting string to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284102#M57867</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 07:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284102#M57867</guid>
      <dc:creator>amitdadri</dc:creator>
      <dc:date>2019-01-14T07:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error in converting string to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284103#M57868</link>
      <description>&lt;P&gt;Is it possible to put the screen capture of your tmap? it will be useful to see the datatype you used in the source and target&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try the following functions:&lt;/P&gt;&lt;P&gt;TalendDate.format("yyyy-MM-dd", row.myDate)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TalendDate.parseDate("dd.MM.yyyy",row1.Clearing_Date)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TalendDate.formatDate("yyyyMMdd",row6.Date)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Var.date==null || Var.date.isEmpty())? null : TalendDate.parseDate("MM/dd/yyyy",TalendDate.formatDate("MM/dd/yyyy",TalendDate.parseDate("MM/dd/yyyy",Var.date)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 09:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284103#M57868</guid>
      <dc:creator>Manoj_MUTHURAJA</dc:creator>
      <dc:date>2019-01-14T09:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error in converting string to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284104#M57869</link>
      <description>&lt;P&gt;Thanks for the reply &lt;A href="https://community.qlik.com/s/profile/null"&gt;@Manoj_MUTHURAJA&lt;/A&gt;&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="tmapTest.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1vV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147803iD89182EBFFB7ABC9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1vV.png" alt="0683p000009M1vV.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;what you have suggested is giving bit different output for two different values i provided&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Input values 1/1/2019&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp; 25/01/2019&lt;/P&gt; 
&lt;P&gt;corresponding output that i got&lt;/P&gt; 
&lt;P&gt;|StartDate |&lt;BR /&gt;|=--------=|&lt;BR /&gt;|2019-01-01|&lt;BR /&gt;|2021-01-01|&lt;BR /&gt;'----------'&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For first value it's working fine , but for second value its giving wrong output.&lt;/P&gt; 
&lt;P&gt;Would be a great help if you suggest solution to this&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 10:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284104#M57869</guid>
      <dc:creator>amitdadri</dc:creator>
      <dc:date>2019-01-14T10:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error in converting string to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284105#M57870</link>
      <description>&lt;P&gt;it's normal the data is of different type because the the function you gave is yyyy-mm-dd&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now you can change the format to dd-mm-yyyyy ,try and see and tell me what it gives&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 10:53:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284105#M57870</guid>
      <dc:creator>Manoj_MUTHURAJA</dc:creator>
      <dc:date>2019-01-14T10:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error in converting string to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284106#M57871</link>
      <description>i have changed the format as you told, still I'm getting the wrong value, the input data will be same as of the values I'm giving as input eg 1/1/2019 , 25/01/2019 , 23/1/2019 ,&lt;BR /&gt;&lt;BR /&gt;and I need the output in "yyyy-MM-dd" format</description>
      <pubDate>Mon, 14 Jan 2019 11:39:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284106#M57871</guid>
      <dc:creator>amitdadri</dc:creator>
      <dc:date>2019-01-14T11:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error in converting string to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284107#M57872</link>
      <description>&lt;P&gt;I don't know how to help more.Either You can put the screen capture of the full tmap or otherwise use the tmap:&lt;/P&gt;
&lt;P&gt;use this link for reference&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://www.youtube.com/watch?v=2TCmUs8_9uM" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.youtube.com/watch?v=2TCmUs8_9uM&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please look at the screen capture I have attached below.&lt;/P&gt;
&lt;P&gt;I am sure it could be useful for you.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LucQ"&gt;Capture12.PNG&lt;/A&gt;</description>
      <pubDate>Mon, 14 Jan 2019 14:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284107#M57872</guid>
      <dc:creator>Manoj_MUTHURAJA</dc:creator>
      <dc:date>2019-01-14T14:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error in converting string to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284108#M57873</link>
      <description>&lt;P&gt;Hello amitdadri,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if your inputs 1/1/2019, 25/01/2019, 23/1/2019 are of type Date, then you can convert them to "yyyy-MM-dd" Strings with TalendDate.formatDate("yyyy-MM-dd", row1.yourInputDate). If your inputs are Strings, convert them to Date format with TalendDate.parseDate("dd/MM/yyyy", row5.yourInputString) first, then apply the formatDate function mentioned before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 15:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-converting-string-to-Date/m-p/2284108#M57873</guid>
      <dc:creator>ThWabi</dc:creator>
      <dc:date>2019-01-15T15:54:47Z</dc:date>
    </item>
  </channel>
</rss>

