<?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 A Small doubt in dates function (might be silly) but it's confusing me in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/A-Small-doubt-in-dates-function-might-be-silly-but-it-s/m-p/553146#M206674</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the below two functions returns the same date if I use today() &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=YearEnd(today(),0,-10)&lt;/P&gt;&lt;P&gt;returns: 31/01/2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=YearEnd(today(),0,2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns: 31/01/2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what's the difference ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jan 2014 16:19:29 GMT</pubDate>
    <dc:creator>narband2778</dc:creator>
    <dc:date>2014-01-22T16:19:29Z</dc:date>
    <item>
      <title>A Small doubt in dates function (might be silly) but it's confusing me</title>
      <link>https://community.qlik.com/t5/QlikView/A-Small-doubt-in-dates-function-might-be-silly-but-it-s/m-p/553146#M206674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the below two functions returns the same date if I use today() &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=YearEnd(today(),0,-10)&lt;/P&gt;&lt;P&gt;returns: 31/01/2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=YearEnd(today(),0,2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns: 31/01/2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what's the difference ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 16:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-Small-doubt-in-dates-function-might-be-silly-but-it-s/m-p/553146#M206674</guid>
      <dc:creator>narband2778</dc:creator>
      <dc:date>2014-01-22T16:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: A Small doubt in dates function (might be silly) but it's confusing me</title>
      <link>https://community.qlik.com/t5/QlikView/A-Small-doubt-in-dates-function-might-be-silly-but-it-s/m-p/553147#M206675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The third parameter of YearEnd() is "first month of year".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you have 2, 2=February since your second parameter ("shift") is zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when you have -10, 12-10=2=February as well, since, once again, your second parameter ("shift") is zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 16:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-Small-doubt-in-dates-function-might-be-silly-but-it-s/m-p/553147#M206675</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-22T16:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: A Small doubt in dates function (might be silly) but it's confusing me</title>
      <link>https://community.qlik.com/t5/QlikView/A-Small-doubt-in-dates-function-might-be-silly-but-it-s/m-p/553148#M206676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;but, instead of using today() function if pass valid date.&lt;/P&gt;&lt;P&gt;Ex:&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=YearEnd('01/02/2000',0,-10)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;result: 31/01/2000&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YearEnd('01/02/2000',0,2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;result: 31/01/2001&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;why these are showing different results?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;anyone??&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 09:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-Small-doubt-in-dates-function-might-be-silly-but-it-s/m-p/553148#M206676</guid>
      <dc:creator>narband2778</dc:creator>
      <dc:date>2014-01-23T09:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: A Small doubt in dates function (might be silly) but it's confusing me</title>
      <link>https://community.qlik.com/t5/QlikView/A-Small-doubt-in-dates-function-might-be-silly-but-it-s/m-p/553149#M206677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YearEnd('01/02/2000',0,-10), it shows the end of the &lt;EM&gt;previous&lt;/EM&gt; year (because the 10 is &lt;EM&gt;negative&lt;/EM&gt;).&amp;nbsp; Since you say the new year starts in February, the end of the previous year would be 31/01/2000 (because 01/02/2000 is the first day of the new/"current" year).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YearEnd('01/02/2000',0,2), it shows the end of the "&lt;EM&gt;current&lt;/EM&gt;" year (because the 2 is &lt;EM&gt;positive&lt;/EM&gt;).&amp;nbsp; Since you say the new year starts in February, the end of the current year would be 31/01/2001 &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(because 01/02/2000 is the first day of the new/"current" year)&lt;/SPAN&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 13:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-Small-doubt-in-dates-function-might-be-silly-but-it-s/m-p/553149#M206677</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-23T13:49:06Z</dc:date>
    </item>
  </channel>
</rss>

