<?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 Date format in file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Date-format-in-file/m-p/2220244#M14747</link>
    <description>&lt;P&gt;I was get in file as below format&amp;nbsp;&lt;/P&gt;&lt;P&gt;02/11/2019 07:06:47 AM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I use below logic to load into table&amp;nbsp;&lt;/P&gt;&lt;P&gt;TalendDate.formatDate("yyyy-MM-dd HH:mm:ss",TalendDate.parseDate("MM/dd/yyyy hh:mm:ss a",row5.Date))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But Now I am getting in file as below format&amp;nbsp; . How can i make sure to handle both formats&amp;nbsp;&lt;/P&gt;&lt;P&gt;10/1/2018 7:06&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2019 18:28:23 GMT</pubDate>
    <dc:creator>Karuetl</dc:creator>
    <dc:date>2019-03-05T18:28:23Z</dc:date>
    <item>
      <title>Date format in file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-format-in-file/m-p/2220244#M14747</link>
      <description>&lt;P&gt;I was get in file as below format&amp;nbsp;&lt;/P&gt;&lt;P&gt;02/11/2019 07:06:47 AM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I use below logic to load into table&amp;nbsp;&lt;/P&gt;&lt;P&gt;TalendDate.formatDate("yyyy-MM-dd HH:mm:ss",TalendDate.parseDate("MM/dd/yyyy hh:mm:ss a",row5.Date))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But Now I am getting in file as below format&amp;nbsp; . How can i make sure to handle both formats&amp;nbsp;&lt;/P&gt;&lt;P&gt;10/1/2018 7:06&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 18:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-format-in-file/m-p/2220244#M14747</guid>
      <dc:creator>Karuetl</dc:creator>
      <dc:date>2019-03-05T18:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-format-in-file/m-p/2220245#M14748</link>
      <description>&lt;P&gt;try to change while creating meta data using the file and see s below&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="date.PNG" style="width: 910px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2e1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129306i3FE496CF29A6BF17/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2e1.png" alt="0683p000009M2e1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 18:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-format-in-file/m-p/2220245#M14748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-05T18:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-format-in-file/m-p/2220246#M14749</link>
      <description>&lt;P&gt;Is other way to fix than metadata&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 18:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-format-in-file/m-p/2220246#M14749</guid>
      <dc:creator>Karuetl</dc:creator>
      <dc:date>2019-03-05T18:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-format-in-file/m-p/2220247#M14750</link>
      <description>&lt;P&gt;&amp;nbsp;Try to read column as string and validate it after in tMap against with all possible date format.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;below link will help&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCkg2CAC" target="_blank" rel="noopener"&gt;https://community.talend.com/t5/Design-and-Development/how-to-parse-various-date-formats/td-p/140825&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 21:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-format-in-file/m-p/2220247#M14750</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-03-05T21:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-format-in-file/m-p/2220248#M14751</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 looking for a quick a dirty way, check the number of colons in the input string. It can be ether 2 or 3 based on your input flow.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; If its 3, use the existing method to parse it. In the else condition, use the new parse logic. But I would like to again stress that its a quick way to solve the problem. If you are going to have lot of different formats, it might be a problem.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;Ideally it is a source issue and they should send the data in agreed format. They cannot send the data in whatever format they want in a proper enterprise environment.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 06:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-format-in-file/m-p/2220248#M14751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-06T06:12:08Z</dc:date>
    </item>
  </channel>
</rss>

