<?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 How to split the date from date and time in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284221#M57962</link>
    <description>Hi,&lt;BR /&gt;   In my flat file i am having date in the format of yyyy-MM-dd HH:mm:ss.SSS.For example "2009-02-24 00:00:00.000".My requirement is getting date alone in the format of MM/dd/yyy.By using tmap how to do?Any one please give me reply.&lt;BR /&gt;Thanks&lt;BR /&gt;Jyothsna.E</description>
    <pubDate>Sat, 16 Nov 2024 14:03:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T14:03:46Z</dc:date>
    <item>
      <title>How to split the date from date and time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284221#M57962</link>
      <description>Hi,&lt;BR /&gt;   In my flat file i am having date in the format of yyyy-MM-dd HH:mm:ss.SSS.For example "2009-02-24 00:00:00.000".My requirement is getting date alone in the format of MM/dd/yyy.By using tmap how to do?Any one please give me reply.&lt;BR /&gt;Thanks&lt;BR /&gt;Jyothsna.E</description>
      <pubDate>Sat, 16 Nov 2024 14:03:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284221#M57962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to split the date from date and time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284222#M57963</link>
      <description>Hello
&lt;BR /&gt;You can read the date as a string, then substring the string and parse the result to a date finally.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 24 Feb 2009 07:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284222#M57963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-24T07:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to split the date from date and time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284223#M57964</link>
      <description>Hi&lt;BR /&gt;     As per you i given like this "TalendDate.parseDate("MM/dd/yyyy",DataFile1.LOSS_DT.substring(0, 10) )".But it is not working.How to go give the condition?</description>
      <pubDate>Tue, 24 Feb 2009 09:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284223#M57964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-24T09:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to split the date from date and time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284224#M57965</link>
      <description>Hello
&lt;BR /&gt;See the screenshot.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 24 Feb 2009 10:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284224#M57965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-24T10:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to split the date from date and time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284225#M57966</link>
      <description>Hi&lt;BR /&gt;   I saw you screen shot.I also given like this "TalendDate.parseDate("MM/dd/yyyy",DataFile1.LOSS_DT.substring(0, 10) )".It showing error like &lt;BR /&gt;Exception in component tMap_2&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "2005-01-02".</description>
      <pubDate>Tue, 24 Feb 2009 10:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284225#M57966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-24T10:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to split the date from date and time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284226#M57967</link>
      <description>hi, 
&lt;BR /&gt;I'm not sure about whazt you are looking for , but if you just want to get a result string from your substring, 
&lt;BR /&gt;you can do something like : 
&lt;BR /&gt; 
&lt;PRE&gt;String [] arr = sub.split("-"); &lt;BR /&gt;String newDate = arr+"/"+arr+"/"+arr;&lt;/PRE&gt; 
&lt;BR /&gt;but if you want Date type , I think you 've to use 
&lt;A href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html" target="_blank" rel="nofollow noopener noreferrer"&gt;SimpleDateFormat&lt;/A&gt; 
&lt;BR /&gt;hope it help you 
&lt;BR /&gt;++ 
&lt;BR /&gt;ps:hoops ... too slowly answer 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 24 Feb 2009 10:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284226#M57967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-24T10:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to split the date from date and time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284227#M57968</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi&lt;BR /&gt; I saw you screen shot.I also given like this "TalendDate.parseDate("MM/dd/yyyy",DataFile1.LOSS_DT.substring(0, 10) )".It showing error like &lt;BR /&gt;Exception in component tMap_2&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "2005-01-02".&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Your expression is not like mine, please see my screenshot again. 
&lt;BR /&gt;The correct expression should be: 
&lt;BR /&gt; 
&lt;PRE&gt;TalendDate.parseDate("yyyy-MM-dd",DataFile1.LOSS_DT.substring(0, 10) )&lt;/PRE&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 24 Feb 2009 10:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284227#M57968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-24T10:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to split the date from date and time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284228#M57969</link>
      <description>Hi Shong, 
&lt;BR /&gt;I am having a similar scenario &amp;amp; Your solution is not working for me.In my job Tmap rejects these records.Also my Date format in the input csv is "MM/dd/yyyy HH:mm:ss" .So in the expression should we specify "MM/dd/yyyy" or "MM/dd/yyyy HH:mm:ss".Please reply asap.Thanks in advance.</description>
      <pubDate>Sun, 14 Nov 2010 22:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-the-date-from-date-and-time/m-p/2284228#M57969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-14T22:55:14Z</dc:date>
    </item>
  </channel>
</rss>

