<?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 Parse String to Date in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Parse-String-to-Date/m-p/2319595#M89820</link>
    <description>Hi All, 
&lt;BR /&gt;I have situation where I want to convert String to Date. 
&lt;BR /&gt;I tested first without parsing anything. It looks like this : 
&lt;BR /&gt; 
&lt;BR /&gt;Source : 8/5/2012 3:27:06 PM 
&lt;BR /&gt;Result : Tue May 08 15:27:06 SGT 2012 
&lt;BR /&gt; 
&lt;BR /&gt;Mind you that both are Strings. 
&lt;BR /&gt;Do you have any idea on how to convert String to Date. So that the Result datatype is Date not String. 
&lt;BR /&gt;Thanks in advance, 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;naim 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDmF.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131430i3CA321A31B61B6B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDmF.jpg" alt="0683p000009MDmF.jpg" /&gt;&lt;/span&gt;</description>
    <pubDate>Thu, 07 Feb 2013 07:54:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-02-07T07:54:41Z</dc:date>
    <item>
      <title>Parse String to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-String-to-Date/m-p/2319595#M89820</link>
      <description>Hi All, 
&lt;BR /&gt;I have situation where I want to convert String to Date. 
&lt;BR /&gt;I tested first without parsing anything. It looks like this : 
&lt;BR /&gt; 
&lt;BR /&gt;Source : 8/5/2012 3:27:06 PM 
&lt;BR /&gt;Result : Tue May 08 15:27:06 SGT 2012 
&lt;BR /&gt; 
&lt;BR /&gt;Mind you that both are Strings. 
&lt;BR /&gt;Do you have any idea on how to convert String to Date. So that the Result datatype is Date not String. 
&lt;BR /&gt;Thanks in advance, 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;naim 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDmF.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131430i3CA321A31B61B6B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDmF.jpg" alt="0683p000009MDmF.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 07 Feb 2013 07:54:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-String-to-Date/m-p/2319595#M89820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-07T07:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Parse String to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-String-to-Date/m-p/2319596#M89821</link>
      <description>hi sonal, 
&lt;BR /&gt;I Have tried using TalendDate.parseDate("dd/MM/yyyy HH:mm:ss",row1.Value) and the result is 
&lt;BR /&gt;Starting job UC_Pro_Preparation at 09:27 08/02/2013. 
&lt;BR /&gt; 
&lt;BR /&gt; connecting to socket on port 3935 
&lt;BR /&gt; connected 
&lt;BR /&gt;Exception in component tMap_1 
&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "row1.pa_record_create_date" 
&lt;BR /&gt; at routines.TalendDate.parseDate(TalendDate.java:744) 
&lt;BR /&gt; at talend.uc_pro_preparation_0_1.UC_Pro_Preparation.tFileInputExcel_1Process(UC_Pro_Preparation.java:1956) 
&lt;BR /&gt; at talend.uc_pro_preparation_0_1.UC_Pro_Preparation.runJobInTOS(UC_Pro_Preparation.java:2404) 
&lt;BR /&gt; at talend.uc_pro_preparation_0_1.UC_Pro_Preparation.main(UC_Pro_Preparation.java:2272) 
&lt;BR /&gt;Caused by: java.text.ParseException: Unparseable date: "row1.pa_record_create_date" 
&lt;BR /&gt; at java.text.DateFormat.parse(Unknown Source) 
&lt;BR /&gt; at routines.TalendDate.parseDate(TalendDate.java:742) 
&lt;BR /&gt; ... 3 more 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;Job UC_Pro_Preparation ended at 09:27 08/02/2013. 
&lt;BR /&gt;Do you have any idea what is going wrong with the job? 
&lt;BR /&gt;Thank you. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDd8.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140031i590FB24713DD24C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDd8.jpg" alt="0683p000009MDd8.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 08 Feb 2013 01:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-String-to-Date/m-p/2319596#M89821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-08T01:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Parse String to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-String-to-Date/m-p/2319597#M89822</link>
      <description>Hi Naim, 
&lt;BR /&gt;One of the method to achieve this is by changing the data type from the edit schema option. 
&lt;BR /&gt;# Double click on the tLogRow Component 
&lt;BR /&gt;# Click on the edit schema option 
&lt;BR /&gt;# Select the column which data type needs to be change 
&lt;BR /&gt;# Change the data type form the drop down list available in the type column 
&lt;BR /&gt;# Make these change in both the ends i.e. tLogRow as well as tFileInputExcel 
&lt;BR /&gt;# You can also mention the desired pattern of the date in the Date pattern column 
&lt;BR /&gt;For more details have a look in the attached snapshot. 
&lt;BR /&gt;Best Regards, 
&lt;BR /&gt;Mayur 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDn2.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130706i5C93ED5C786413F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDn2.jpg" alt="0683p000009MDn2.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 08 Feb 2013 08:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-String-to-Date/m-p/2319597#M89822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-08T08:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Parse String to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-String-to-Date/m-p/2319598#M89823</link>
      <description>These examples work:
&lt;BR /&gt;TalendDate.parseDateLocale("d/M/yyyy HH:mm:ss a",
&lt;BR /&gt;"8/5/2012 3:27:06 PM","EN") 
&lt;BR /&gt;TalendDate.parseDateLocale("EEE MMM dd HH:mm:ss z yyyy",
&lt;BR /&gt;"Tue May 08 15:27:06 SGT 2012","EN")
&lt;BR /&gt;
&lt;BR /&gt;for your source, you would use:
&lt;BR /&gt;TalendDate.parseDateLocale("d/M/yyyy HH:mm:ss a",row1.pa_record_create_date,"EN")</description>
      <pubDate>Fri, 08 Feb 2013 13:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-String-to-Date/m-p/2319598#M89823</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-02-08T13:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Parse String to Date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-String-to-Date/m-p/2319599#M89824</link>
      <description>Hi,&lt;BR /&gt;Thank you so much.&lt;BR /&gt;Regards,&lt;BR /&gt;naim</description>
      <pubDate>Thu, 28 Feb 2013 07:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-String-to-Date/m-p/2319599#M89824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-28T07:36:06Z</dc:date>
    </item>
  </channel>
</rss>

