<?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: TalendDate.formatDate - Incorrect Year result in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-formatDate-Incorrect-Year-result/m-p/2209385#M8232</link>
    <description>&lt;P&gt;This *could* be a timezone calculation issue. Try using&amp;nbsp;formatDateInUTC and see if that solves your issue.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2017 17:52:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-22T17:52:59Z</dc:date>
    <item>
      <title>TalendDate.formatDate - Incorrect Year result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-formatDate-Incorrect-Year-result/m-p/2209382#M8229</link>
      <description>&lt;P&gt;Hi! I use&amp;nbsp;&lt;SPAN&gt;TalendDate.formatDate to pull the Year out of a Date however for all December dates in 2015 (i.e&amp;nbsp;2015-12-29) it is assigning a 2016 year? how is this happening, how can I fix it?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 15:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-formatDate-Incorrect-Year-result/m-p/2209382#M8229</guid>
      <dc:creator>hgromek</dc:creator>
      <dc:date>2017-05-22T15:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: TalendDate.formatDate - Incorrect Year result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-formatDate-Incorrect-Year-result/m-p/2209383#M8230</link>
      <description>&lt;P&gt;Can you show us your code?&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 16:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-formatDate-Incorrect-Year-result/m-p/2209383#M8230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-22T16:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: TalendDate.formatDate - Incorrect Year result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-formatDate-Incorrect-Year-result/m-p/2209384#M8231</link>
      <description>&lt;P&gt;TalendDate.formatDate("YYYY",row1.ship_date)&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 17:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-formatDate-Incorrect-Year-result/m-p/2209384#M8231</guid>
      <dc:creator>hgromek</dc:creator>
      <dc:date>2017-05-22T17:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: TalendDate.formatDate - Incorrect Year result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-formatDate-Incorrect-Year-result/m-p/2209385#M8232</link>
      <description>&lt;P&gt;This *could* be a timezone calculation issue. Try using&amp;nbsp;formatDateInUTC and see if that solves your issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 17:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-formatDate-Incorrect-Year-result/m-p/2209385#M8232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-22T17:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: TalendDate.formatDate - Incorrect Year result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-formatDate-Incorrect-Year-result/m-p/2209386#M8233</link>
      <description>&lt;P&gt;Actually forget that, the problem is your "YYYY". It should be "yyyy". Try that. This should explain it .....&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 17:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-formatDate-Incorrect-Year-result/m-p/2209386#M8233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-22T17:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: TalendDate.formatDate - Incorrect Year result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TalendDate-formatDate-Incorrect-Year-result/m-p/2209387#M8234</link>
      <description>For those not accustomed to reading Java documentation, "Y" in Java's SimpleDateFormat indicates "Week year" which extends the start of a year to include the entire week. Borrowing the example of 2015-12-29 (a Tuesday), this date evaluates to 2016 because 2016-01-01 (a Friday) is in the same week.
&lt;BR /&gt;
&lt;BR /&gt;The results can vary depending on the calendar in use and the start day of the week (Monday vs. Sunday).
&lt;BR /&gt;
&lt;BR /&gt;In short, use 'y' for years unless you have a very specific need.</description>
      <pubDate>Mon, 22 May 2017 21:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TalendDate-formatDate-Incorrect-Year-result/m-p/2209387#M8234</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-05-22T21:04:50Z</dc:date>
    </item>
  </channel>
</rss>

