<?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: Date Conversion in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Date-Conversion/m-p/2286946#M60568</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to parse the date from "dd.MM.yy" to "dd/MM/yyyy" ?&lt;/P&gt;</description>
    <pubDate>Wed, 10 Oct 2018 10:40:15 GMT</pubDate>
    <dc:creator>dipanjan93</dc:creator>
    <dc:date>2018-10-10T10:40:15Z</dc:date>
    <item>
      <title>Date Conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-Conversion/m-p/2286940#M60562</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a date(String data type) column in&amp;nbsp;excel file , values are in 2 formats 'dd.MM.yyyy' and 'dd/MM/yyyy'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to&amp;nbsp;convert this string type to date using TalendDate.parseDate("dd/MM/yyyy",row2.date).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How&amp;nbsp;am I supposed to use TalendDate.parseDate() for both the date formats within tMap at once?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now I am getting Unparseable date format exception since I am&amp;nbsp;unable to&amp;nbsp;handle this using 'dd/MM/yyyy' format. Please refer below for further details -&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Exception in component tMap_10&amp;nbsp;&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "21.08.2018"&lt;BR /&gt;at routines.TalendDate.parseDate(TalendDate.java:892)&lt;BR /&gt;at routines.TalendDate.parseDate(TalendDate.java:836)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 08:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-Conversion/m-p/2286940#M60562</guid>
      <dc:creator>dipanjan93</dc:creator>
      <dc:date>2018-09-17T08:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-Conversion/m-p/2286941#M60563</link>
      <description>excel store date as date format and display it using local configuration.
&lt;BR /&gt;wat you see in excel is not what Talend see.
&lt;BR /&gt;if excel think your fiel is a date. he is going to format it a s date an store it as he want.
&lt;BR /&gt;1-try to read date directly from excel.
&lt;BR /&gt;2-read as String and print data (tLog) to check the format.
&lt;BR /&gt;3- try to trim data before formating
&lt;BR /&gt;good luck
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Sep 2018 09:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-Conversion/m-p/2286941#M60563</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-17T09:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-Conversion/m-p/2286942#M60564</link>
      <description>&lt;P&gt;Hi fdenis,&lt;/P&gt;&lt;P&gt;I had already applied all the approaches you have mentioned. Is there no other way to parse the Date column&lt;/P&gt;&lt;P&gt;for both the formats as discussed above i.e., within tMap itself?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need any additional information from my end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 10:07:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-Conversion/m-p/2286942#M60564</guid>
      <dc:creator>dipanjan93</dc:creator>
      <dc:date>2018-09-17T10:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-Conversion/m-p/2286943#M60565</link>
      <description>you can manually format fate using java Split function and retrieving the 3 parts of the date. it may help you to solve your problème.&lt;BR /&gt;you may use tjavaRow to complet this task.&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Sep 2018 10:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-Conversion/m-p/2286943#M60565</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-17T10:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-Conversion/m-p/2286944#M60566</link>
      <description>&lt;P&gt;Hi fdenis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still couldn't figure out the exact process. Could you please explain in a bit illustrative way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 12:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-Conversion/m-p/2286944#M60566</guid>
      <dc:creator>dipanjan93</dc:creator>
      <dc:date>2018-09-19T12:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-Conversion/m-p/2286945#M60567</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; If you are sure that the date values will come only in above two formats, the easiest way will be to replace the character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Relational.ISNULL(row1.input_date)? null:TalendDate.parseDate("dd/MM/yyyy",row1.input_date.replace(".","/")) &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Could you please try this code in tmap and let us know whether it helped to resolve your issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If the answer has helped you, could you please mark the topic as resolved? Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 13:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-Conversion/m-p/2286945#M60567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-19T13:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-Conversion/m-p/2286946#M60568</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to parse the date from "dd.MM.yy" to "dd/MM/yyyy" ?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 10:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-Conversion/m-p/2286946#M60568</guid>
      <dc:creator>dipanjan93</dc:creator>
      <dc:date>2018-10-10T10:40:15Z</dc:date>
    </item>
  </channel>
</rss>

