<?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: parse date from string in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239249#M27094</link>
    <description>Hi&lt;BR /&gt;Get your date with TalendDate.parse() then in a tMap, output two columns :&lt;BR /&gt;TalendDate.format("yyyy-MM-dd", row.myDate)&lt;BR /&gt;TalendDate.format("hh:mm:ss", row.myDate)&lt;BR /&gt;&lt;BR /&gt;You can also use the Talend native date tool with which you can select the format of your date (in the schema, when you select Date as the type of your column, you can set the pattern of your date. Use "yyyy-MM-dd hh:mm:ss" in the input flow and use "yyyy-MM-dd" in the output date flow and "hh:mm:ss" in the output time flow)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Lie</description>
    <pubDate>Thu, 24 Jun 2010 14:13:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-06-24T14:13:37Z</dc:date>
    <item>
      <title>parse date from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239246#M27091</link>
      <description>I receive date in form of string   like "2009-02-20 02:04:36"&lt;BR /&gt;i want to separate date and time and convert in date time format</description>
      <pubDate>Sat, 16 Nov 2024 13:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239246#M27091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: parse date from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239247#M27092</link>
      <description>is TalendDate.parse("yyyy-MM-dd hh-mm-ss", row.aDt )&lt;BR /&gt;what you are looking for?</description>
      <pubDate>Thu, 24 Jun 2010 08:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239247#M27092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-24T08:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: parse date from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239248#M27093</link>
      <description>I want date and time separate as these two goes in different columns.</description>
      <pubDate>Thu, 24 Jun 2010 13:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239248#M27093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-24T13:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: parse date from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239249#M27094</link>
      <description>Hi&lt;BR /&gt;Get your date with TalendDate.parse() then in a tMap, output two columns :&lt;BR /&gt;TalendDate.format("yyyy-MM-dd", row.myDate)&lt;BR /&gt;TalendDate.format("hh:mm:ss", row.myDate)&lt;BR /&gt;&lt;BR /&gt;You can also use the Talend native date tool with which you can select the format of your date (in the schema, when you select Date as the type of your column, you can set the pattern of your date. Use "yyyy-MM-dd hh:mm:ss" in the input flow and use "yyyy-MM-dd" in the output date flow and "hh:mm:ss" in the output time flow)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Lie</description>
      <pubDate>Thu, 24 Jun 2010 14:13:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239249#M27094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-24T14:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: parse date from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239250#M27095</link>
      <description>I am using tJavaRow and performing this on my input string "2009-02-20 02:04:36"
&lt;BR /&gt;dt=TalendDate.parseDate("yyyy-mm-dd HH:mm:ss",date);
&lt;BR /&gt;dt=TalendDate.parseDate("MM-dd-yyyy",TalendDate.formatDate("MM-dd-yyyy", dt));
&lt;BR /&gt;ti=TalendDate.parseDate("hh:mm:ss",TalendDate.formatDate("hh:mm:ss", dt));
&lt;BR /&gt;but i m getting result as 
&lt;BR /&gt;20-01-2009|01-01-1970
&lt;BR /&gt;which is totally wrong. I can only use tJavaRow as I m doing lot more thing in it.</description>
      <pubDate>Fri, 25 Jun 2010 11:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239250#M27095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-25T11:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: parse date from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239251#M27096</link>
      <description>You're doing it wrong.
&lt;BR /&gt;You have a Date Object which contains all of your information "2009-02-20 02:04:36 +GMT blablabla"
&lt;BR /&gt;You have an input string "2009-02-20 02:04:36". You convert it into a date object (with the parseDate) or natively in Talend when you choose "Date" as your column type.
&lt;BR /&gt;Then you can output the same date object in the format you want :
&lt;BR /&gt;"MM-dd-yyyy" will output your date object as "02-20-2009"
&lt;BR /&gt;"HH:mm:ss" will output your date object as "02:04:36"
&lt;BR /&gt;But you could also output your date as :
&lt;BR /&gt;"MM/dd@ss+mm_dd" that would output your date object as "02/20@36+04_20" (that's just a fantasy example)
&lt;BR /&gt;You just have ONE date object and TWO (or more) outputs.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;myDate = TalendDate.parseDate("yyyy-mm-dd HH:mm:ss", input_row.date);&lt;BR /&gt;output_row.dt = myDate;&lt;BR /&gt;output_row.ti = myDate;&lt;/PRE&gt;
&lt;BR /&gt;Then select "Date" type for dt and ti columns in your output_row and select the good format to output.</description>
      <pubDate>Fri, 25 Jun 2010 13:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239251#M27096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-25T13:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: parse date from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239252#M27097</link>
      <description>This is working fine when I show output on tLogRow. But When I tries put output into Mysql database the 2 columns shows same date time.</description>
      <pubDate>Mon, 28 Jun 2010 07:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239252#M27097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-28T07:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: parse date from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239253#M27098</link>
      <description>The Date Patterns only affect file input or output (or tLogRow) because they are effectively display masks and do not change the underlying field value.  That is why the full date value is being sent to MySQL.&lt;BR /&gt;If you send the results to DATE and TIME fields in MySQL rather than DATETIME fields, the extraneous part should just be ignored.</description>
      <pubDate>Tue, 29 Jun 2010 02:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239253#M27098</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-06-29T02:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: parse date from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239254#M27099</link>
      <description>what happens when you have the incoming date value as 01/0001 and you want output to be null for the date value. How do you do this?</description>
      <pubDate>Tue, 02 Nov 2010 16:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239254#M27099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-02T16:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: parse date from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239255#M27100</link>
      <description>Because that is not a valid date, you will not be able to read it from the file as a date without causing an error and thus the row to reject.  You will need to use a tReplace to change the String "01/0001" to a null and then a tConvertType to change the (cleaned) Strings to a Date before writing to your output.</description>
      <pubDate>Tue, 02 Nov 2010 22:02:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/parse-date-from-string/m-p/2239255#M27100</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-11-02T22:02:48Z</dc:date>
    </item>
  </channel>
</rss>

