<?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 Handling in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Date-Handling/m-p/2375314#M137757</link>
    <description>&lt;P&gt;Thank you Shong, that worked.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Wed, 19 Aug 2020 13:22:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-19T13:22:46Z</dc:date>
    <item>
      <title>Date Handling</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-Handling/m-p/2375312#M137755</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Does anybody have an article or info on how to properly handle dates in Talend Studio?  I find that Studio simply will not format dates on the fly to return a consistent date format, causing jobs to fail constantly, and it is really frustrating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am building a job that reads in a CSV file which has a date column.  Sometimes the data comes to me using the date format &lt;B&gt;dd/MM/yyyy&lt;/B&gt; and other times it comes in as &lt;B&gt;dd-MM-yyyy&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just cannot get a standard simple job layout of&lt;B&gt; tfileInputDelimited &amp;gt;&amp;gt; tMap &amp;gt;&amp;gt; tDBOutput&lt;/B&gt; layout to handle this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SQL, this is dead simple.  I just use this: &lt;B&gt;SELECT CONVERT(DATETIME, myDate, 103)&lt;/B&gt; and it will handle either date format and set it to a standard format I want.  But in Talend Studio I cannot get any TalendDate function to handle both in the same job.  I just constantly get errors stating the date cannot be parsed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a SQL developer, not a Java developer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm thinking of just changing the schema to read the source date in as a string into SQL DB table, and then move the data to another table using SQL to convert the string to a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-Handling/m-p/2375312#M137755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T01:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date Handling</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-Handling/m-p/2375313#M137756</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;In Studio, the component requires to use the right date format to read the date column. To resolve this issue, read the data as a string from CSV file, then check if the string contains "/" or "-" , use corresponding date format to parse the string and convert it to a Date on tMap. eg:&lt;/P&gt;&lt;P&gt;row1.column_name.contains("-")?TalendDate.parseDate("dd-MM-yyyy",row1.column_name):TalendDate.parseDate("dd/MM/yyyy",row1.column_name)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 07:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-Handling/m-p/2375313#M137756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-19T07:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Date Handling</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-Handling/m-p/2375314#M137757</link>
      <description>&lt;P&gt;Thank you Shong, that worked.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 13:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-Handling/m-p/2375314#M137757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-19T13:22:46Z</dc:date>
    </item>
  </channel>
</rss>

