<?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 logic to split dates in talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/logic-to-split-dates-in-talend/m-p/2283051#M57058</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one requirement,my source has one date column as&lt;/P&gt;&lt;P&gt;date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; location&lt;/P&gt;&lt;P&gt;5-10 jan,14 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want my output as&lt;/P&gt;&lt;P&gt;date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; location&lt;/P&gt;&lt;P&gt;5-01-2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x&lt;/P&gt;&lt;P&gt;6-01-2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;7-01-2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;8-01-2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;9-01-2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;10-01-2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;can we do this in talend.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;please help me out&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rekha&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2017 13:12:36 GMT</pubDate>
    <dc:creator>bhagyarekha</dc:creator>
    <dc:date>2017-05-16T13:12:36Z</dc:date>
    <item>
      <title>logic to split dates in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/logic-to-split-dates-in-talend/m-p/2283051#M57058</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one requirement,my source has one date column as&lt;/P&gt;&lt;P&gt;date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; location&lt;/P&gt;&lt;P&gt;5-10 jan,14 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want my output as&lt;/P&gt;&lt;P&gt;date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; location&lt;/P&gt;&lt;P&gt;5-01-2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x&lt;/P&gt;&lt;P&gt;6-01-2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;7-01-2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;8-01-2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;9-01-2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;10-01-2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;can we do this in talend.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;please help me out&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rekha&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 13:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/logic-to-split-dates-in-talend/m-p/2283051#M57058</guid>
      <dc:creator>bhagyarekha</dc:creator>
      <dc:date>2017-05-16T13:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: logic to split dates in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/logic-to-split-dates-in-talend/m-p/2283052#M57059</link>
      <description>&lt;P&gt;Yes you can. First of all, how much Java do you know? This will need a little bit of Java (not difficult stuff) to isolate the month and year (Jan, 14) from the day range. You can use String methods for this (see here&amp;nbsp;&lt;A href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.oracle.com/javase/7/docs/api/java/lang/String.html&lt;/A&gt;). You will then need to work out your "from" and "to" days. Again, String manipulation will be useful here.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Once you have your date and day range known, you can implement some functionality to create a list of days that make up that range. This can be done with a tMap and a tJavaFlex as the lookup. I have written a tutorial which shows the approach I would suggest, here (&lt;A href="https://www.rilhia.com/quicktips/quick-tip-row-multiplication" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/quicktips/quick-tip-row-multiplication&lt;/A&gt;). For every row you get which has your date+range value, this method will multiply it by the number of days in that range. So if you have a row with a range of 5 days, it will convert that single row into 5 rows, each with a different date.&lt;BR /&gt;&lt;BR /&gt;I have purposefully not given you the Java you will need because I think it makes sense for you to work it out from what I have told you. If you have Java already, that will be easy. If you don't have Java, then if you are going to continue with Talend you will need it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 13:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/logic-to-split-dates-in-talend/m-p/2283052#M57059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-16T13:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: logic to split dates in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/logic-to-split-dates-in-talend/m-p/2283053#M57060</link>
      <description>&lt;P&gt;Hi Rekha,&lt;/P&gt;&lt;P&gt;Did you able to solve this one?? I am still struggling.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 22:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/logic-to-split-dates-in-talend/m-p/2283053#M57060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-05T22:14:24Z</dc:date>
    </item>
  </channel>
</rss>

