<?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 Re: extract year from date type variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329060#M98282</link>
    <description>Thanks bcourtine for your respond,
&lt;BR /&gt;I put your suggestion in the expression filter of the tMap but it returned with an error message which says:
&lt;BR /&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
&lt;BR /&gt; The left-hand side of an assignment must be a variable
&lt;BR /&gt;See below a screenshot of my tMap design.
&lt;BR /&gt;Can you please give your reaction. Can you perhaps explain to me what went wrong?
&lt;BR /&gt;Thanks in advance,
&lt;BR /&gt;Michel</description>
    <pubDate>Mon, 08 Jun 2009 19:51:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-06-08T19:51:13Z</dc:date>
    <item>
      <title>extract year from date type variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329058#M98280</link>
      <description>Hello,
&lt;BR /&gt;I m using TOS3.10 / java under windows xp and I wonder how I can extract the year part of a date or datatime type?
&lt;BR /&gt;I will use it in an expression filter of a Tmap. From several tables i want to make a join but not all rows of the input table are suitable for the join. 
&lt;BR /&gt;Can someone help me, since i do not know anything of java.
&lt;BR /&gt;Michel</description>
      <pubDate>Sat, 16 Nov 2024 13:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329058#M98280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: extract year from date type variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329059#M98281</link>
      <description>You can get the year using the Talend Date routines :&lt;BR /&gt;&lt;PRE&gt;TalendDate.formatDate("yyyy",rowX.myDate)&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jun 2009 18:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329059#M98281</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-08T18:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: extract year from date type variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329060#M98282</link>
      <description>Thanks bcourtine for your respond,
&lt;BR /&gt;I put your suggestion in the expression filter of the tMap but it returned with an error message which says:
&lt;BR /&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
&lt;BR /&gt; The left-hand side of an assignment must be a variable
&lt;BR /&gt;See below a screenshot of my tMap design.
&lt;BR /&gt;Can you please give your reaction. Can you perhaps explain to me what went wrong?
&lt;BR /&gt;Thanks in advance,
&lt;BR /&gt;Michel</description>
      <pubDate>Mon, 08 Jun 2009 19:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329060#M98282</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-08T19:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: extract year from date type variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329061#M98283</link>
      <description>Hello
&lt;BR /&gt;There should be double '=',eg:
&lt;BR /&gt;TalendDate.formatDate("yyyy",row1.date)=="2009"
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 09 Jun 2009 02:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329061#M98283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-09T02:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: extract year from date type variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329062#M98284</link>
      <description>Hello Shong,
&lt;BR /&gt;thanks for the reply, it works(which means no error message) but I 've no output. And I'm sure the yearpart 2009 or 2999 is in the table.
&lt;BR /&gt;The date 2999-01-01 can be the value of the variable scd_end which is in the script:
&lt;BR /&gt;TalendDate.formatDate("yyyy",row1.Scd_end)=="2009"
&lt;BR /&gt;I doubt if the value of the TalendDate.formatDate("yyyy",row1.Scd_end) is a character value. It is for sure that the value is not the same as 2009 or 2999.
&lt;BR /&gt;I hoped the following took place: "2009" = "2009" (so that particular row was selected).
&lt;BR /&gt;Can you explain a solution.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Michel</description>
      <pubDate>Tue, 09 Jun 2009 19:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329062#M98284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-09T19:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: extract year from date type variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329063#M98285</link>
      <description>Hello 
&lt;BR /&gt;The method TalendDate.formatDate return a string, so you can try the following expresson: 
&lt;BR /&gt;TalendDate.formatDate("yyyy",row1.Scd_end).equals("2009") 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 10 Jun 2009 04:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329063#M98285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-10T04:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: extract year from date type variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329064#M98286</link>
      <description>Shong, 
&lt;BR /&gt;thank you very much for your help, it works now! One more question, I've submit several question related to TOD, but no answer. Do you know why? Can you inform a colleque of you for me please? I would very much appreciate that. 
&lt;BR /&gt;Thanks in advance, 
&lt;BR /&gt;Michel</description>
      <pubDate>Wed, 10 Jun 2009 08:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329064#M98286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-10T08:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: extract year from date type variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329065#M98287</link>
      <description>Hi all,&lt;BR /&gt;I have the same problem like micoppoolse, but in my case i want to get year of the current date.&lt;BR /&gt;I do so something like this, but it don't work.&lt;BR /&gt;&lt;PRE&gt;TalendDate.formatDate("yyyy",TalendDate.getCurrentDate())&lt;/PRE&gt;&lt;BR /&gt;So may somebody help me please?&lt;BR /&gt;Thank you.</description>
      <pubDate>Tue, 03 Feb 2015 09:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329065#M98287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-03T09:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: extract year from date type variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329066#M98288</link>
      <description>Here is for you IDEMBELE :&amp;nbsp;
&lt;BR /&gt;TalendDate.getDate("CCYY")</description>
      <pubDate>Tue, 03 Feb 2015 09:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329066#M98288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-03T09:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: extract year from date type variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329067#M98289</link>
      <description>Hi mathis,&lt;BR /&gt;Thank you, but this code &amp;nbsp; &amp;nbsp; &lt;BR /&gt;&lt;PRE&gt;TalendDate.getDate("CCYY")&lt;/PRE&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return a boolean&lt;BR /&gt;So to resolve the problem, i use this code&lt;BR /&gt;&lt;PRE&gt;TalendDate.formatDate("yyyy",new Date())&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Feb 2015 10:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329067#M98289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-03T10:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: extract year from date type variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329068#M98290</link>
      <description>Hi,&lt;BR /&gt;My requirement is:&lt;BR /&gt;I have a huge csv file and i would like to generate multiple files for each year(Only based on year) and these files &amp;nbsp;has to save into their respective year folders automatically. I have a date column.&amp;nbsp;&lt;BR /&gt;it is very urgent. Plz help me on this.&lt;BR /&gt;kind regards,&lt;BR /&gt;Asha</description>
      <pubDate>Mon, 27 Jun 2016 13:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329068#M98290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-27T13:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: extract year from date type variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329069#M98291</link>
      <description>org.talend.designer.hdfsbrowse.exceptions.HadoopServerException: org.talend.designer.hdfsbrowse.exceptions.HadoopServerException: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException 
  &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.talend.designer.hdfsbrowse.hadoop.service.check.AbstractCheckedServiceProvider.checkService(AbstractCheckedServiceProvider.java:51) 
  &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.talend.designer.hdfsbrowse.hadoop.service.HadoopServiceBean.check(HadoopServiceBean.java:102) 
  &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.talend.designer.hdfsbrowse.hadoop.service.check.CheckHadoopServicesDialog$5.run(CheckHadoopServicesDialog.java:373) 
  &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
  &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;amp;n
 &lt;BR /&gt;&lt;BR /&gt;To see the whole post, download it &lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009MdFd"&gt;here&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009MdFd"&gt;OriginalPost.pdf&lt;/A&gt;</description>
      <pubDate>Mon, 27 Jun 2016 14:13:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329069#M98291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-27T14:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: extract year from date type variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329070#M98292</link>
      <description>Lol i can't say for the error just ahead but for the date you have several options.&lt;BR /&gt;The easiest way is to open n times your file, not very efficient bur pretty simple&lt;BR /&gt;1)you get all the years, uniq those years,&amp;nbsp;then&amp;nbsp;you iterate (tflowtoiterate)&lt;BR /&gt;At this point you have an iteration for each different year in your csv&lt;BR /&gt;2) you put the year in a variable, then you reopen your file&amp;nbsp;and filter on the year you need, and when you write on your files, you just have to put your variable in the file path.&amp;nbsp;&lt;BR /&gt;could be something like&lt;BR /&gt;&lt;BR /&gt;tFileInputDelimited&lt;BR /&gt;tUniqRow&lt;BR /&gt;tFlowToIterate&lt;BR /&gt;tFileInputDelimited&lt;BR /&gt;tFilterRow&lt;BR /&gt;tFileOutputDelimited&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Jun 2016 15:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329070#M98292</guid>
      <dc:creator>Franz3</dc:creator>
      <dc:date>2016-06-27T15:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: extract year from date type variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329071#M98293</link>
      <description>Hi guys,&amp;nbsp;
&lt;BR /&gt;Need your help on getting the year only of a date field, i tried using this&amp;nbsp;
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, " bitstream="" vera="" sans="" mono=""&gt;TalendDate.formatDate("yyyy",rowX.myDate)&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, " bitstream="" vera="" sans="" mono=""&gt;but I am having an error below "&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT face="consolas, monaco, bitstream vera sans mono, courier new, courier, monospace"&gt;&lt;FONT size="2"&gt;The cell format is not Date in ( Row. 1 and ColumnNum. 2 )&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, " bitstream="" vera="" sans="" mono=""&gt;"&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, " bitstream="" vera="" sans="" mono=""&gt;can you help me ?&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 09 Aug 2016 12:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-year-from-date-type-variable/m-p/2329071#M98293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-09T12:02:14Z</dc:date>
    </item>
  </channel>
</rss>

