<?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 Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/Date-Format/m-p/2277790#M3291</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a problem with date format, because data has differents kinds of format in columns where data is date, formats are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;28/02/2019&lt;/P&gt;
&lt;P&gt;3/Mar/2019&lt;/P&gt;
&lt;P&gt;31-01-19&lt;/P&gt;
&lt;P&gt;20-Feb-2019&lt;/P&gt;
&lt;P&gt;Wed Mar 23 14:56 2019&lt;/P&gt;
&lt;P&gt;And any format that you can imagine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I need to the format will be English format "20-02-2019" in one, in other I need format "12-07-2019 14:35", I have the next definition:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
 StringHandling.LEN(row1.PO_Creation_Date)&amp;gt;0 ? (TalendDate.parseDateLocale(StringHandling.LEN(row1.PO_Creation_Date)&amp;gt;18 ? "EEE MMM dd HH:mm:ss zzz yyyy" : "dd-MMM-yy",row1.PO_Creation_Date,"EN")) : null
&lt;/DIV&gt;
&lt;DIV&gt;
 &amp;nbsp;
&lt;/DIV&gt;
&lt;DIV&gt;
 AND
&lt;/DIV&gt;
&lt;DIV&gt;
 &amp;nbsp;
&lt;/DIV&gt;
&lt;DIV&gt;
 StringHandling.LEN(row18.Fecha_de_confirmacion_de_carga_a_transporte)&amp;gt;0 ? (TalendDate.parseDateLocale(StringHandling.LEN(row18.Fecha_de_confirmacion_de_carga_a_transporte)&amp;gt;18 ? "EEE MMM dd HH:mm:ss zzz yyyy" : StringHandling.LEN(row18.Fecha_de_confirmacion_de_carga_a_transporte)&amp;gt;= 8 ? "dd-MMM-yyyy" : "dd/MM/yy",row18.Fecha_de_confirmacion_de_carga_a_transporte,"EN")): null
&lt;/DIV&gt;
&lt;DIV&gt;
 &amp;nbsp;
&lt;/DIV&gt;
&lt;DIV&gt;
 Can you explain me?
&lt;/DIV&gt;
&lt;DIV&gt;
 &amp;nbsp;
&lt;/DIV&gt;
&lt;DIV&gt;
 Regards.
&lt;/DIV&gt;
&lt;DIV&gt;
 &amp;nbsp;
&lt;/DIV&gt;
&lt;DIV&gt;
 &amp;nbsp;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 24 May 2019 21:06:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-24T21:06:46Z</dc:date>
    <item>
      <title>Date Format</title>
      <link>https://community.qlik.com/t5/Data-Quality/Date-Format/m-p/2277790#M3291</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a problem with date format, because data has differents kinds of format in columns where data is date, formats are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;28/02/2019&lt;/P&gt;
&lt;P&gt;3/Mar/2019&lt;/P&gt;
&lt;P&gt;31-01-19&lt;/P&gt;
&lt;P&gt;20-Feb-2019&lt;/P&gt;
&lt;P&gt;Wed Mar 23 14:56 2019&lt;/P&gt;
&lt;P&gt;And any format that you can imagine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I need to the format will be English format "20-02-2019" in one, in other I need format "12-07-2019 14:35", I have the next definition:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
 StringHandling.LEN(row1.PO_Creation_Date)&amp;gt;0 ? (TalendDate.parseDateLocale(StringHandling.LEN(row1.PO_Creation_Date)&amp;gt;18 ? "EEE MMM dd HH:mm:ss zzz yyyy" : "dd-MMM-yy",row1.PO_Creation_Date,"EN")) : null
&lt;/DIV&gt;
&lt;DIV&gt;
 &amp;nbsp;
&lt;/DIV&gt;
&lt;DIV&gt;
 AND
&lt;/DIV&gt;
&lt;DIV&gt;
 &amp;nbsp;
&lt;/DIV&gt;
&lt;DIV&gt;
 StringHandling.LEN(row18.Fecha_de_confirmacion_de_carga_a_transporte)&amp;gt;0 ? (TalendDate.parseDateLocale(StringHandling.LEN(row18.Fecha_de_confirmacion_de_carga_a_transporte)&amp;gt;18 ? "EEE MMM dd HH:mm:ss zzz yyyy" : StringHandling.LEN(row18.Fecha_de_confirmacion_de_carga_a_transporte)&amp;gt;= 8 ? "dd-MMM-yyyy" : "dd/MM/yy",row18.Fecha_de_confirmacion_de_carga_a_transporte,"EN")): null
&lt;/DIV&gt;
&lt;DIV&gt;
 &amp;nbsp;
&lt;/DIV&gt;
&lt;DIV&gt;
 Can you explain me?
&lt;/DIV&gt;
&lt;DIV&gt;
 &amp;nbsp;
&lt;/DIV&gt;
&lt;DIV&gt;
 Regards.
&lt;/DIV&gt;
&lt;DIV&gt;
 &amp;nbsp;
&lt;/DIV&gt;
&lt;DIV&gt;
 &amp;nbsp;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 May 2019 21:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Date-Format/m-p/2277790#M3291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-24T21:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format</title>
      <link>https://community.qlik.com/t5/Data-Quality/Date-Format/m-p/2277791#M3292</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If my understanding about your query is correct, you are expecting the incoming date to be in any format and you would like to convert them to a standardized output format.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; If you are using Talend Studio, it expects the incoming date in a specific format else you will have to write a marathon list of all possible combinations to convert the date to a standardized format.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; But there is an easy solution if you are using subscription version of Talend where you can use Talend Data Preparation to do the cleansing activity. You can create a rule in the Talend Data Preparation recipe where you want to standardize the incoming date. This recipe will be called from Studio to perform the cleansing and you will get standard date in the output.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Please refer the below link for the details.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/JhYq1xxY0SNSBZCbOFzZGg/Ilfz1haQrh_USmE7BkJFsA" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/JhYq1xxY0SNSBZCbOFzZGg/Ilfz1haQrh_USmE7BkJFsA&lt;/A&gt;&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>Sat, 25 May 2019 04:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Date-Format/m-p/2277791#M3292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-25T04:46:44Z</dc:date>
    </item>
  </channel>
</rss>

