<?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: DayNumberOfYear in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/DayNumberOfYear/m-p/664004#M1074599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dargun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is late in the day but I've just had to do something similar relating to Day of Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To work out the leap year you could take advantage of the Mod function&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Mod&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateEntered&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),4) = 0 , 'Leap Year', 'Not Leap Year')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;though to be really accurate you'd have to add a bit to ignore when&amp;nbsp; Mod Year 100 = 0 unless Mod Year 400 = 0 but that is maybe forecasting a bit too far into the future depending on the app &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2015 11:39:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-26T11:39:44Z</dc:date>
    <item>
      <title>DayNumberOfYear</title>
      <link>https://community.qlik.com/t5/QlikView/DayNumberOfYear/m-p/664001#M1074596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use the DayNumberOfYear function for making expression calculating the number of days until someone has a birthday. In order to make the calculation work properly I also need to check whether the current year, and the year the person was born in was a leap year. I have however found that using DayNumberOfYear(YearStart()) with any years other than the current one will return 366, shouldn't this return 1? I have also found that using DayNumberOfYear(YearEnd()) is always 365 regardless of whether the date I put in is a date in a leap year or not. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 09:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DayNumberOfYear/m-p/664001#M1074596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-28T09:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: DayNumberOfYear</title>
      <link>https://community.qlik.com/t5/QlikView/DayNumberOfYear/m-p/664002#M1074597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DayNumberOfYear: Returns the day number of the year according to a timestamp with the first millisecond of the first day of the year containing date. The function always uses &lt;STRONG style="text-decoration: underline;"&gt;years based on 366 days.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strange logic from the QlikView Developers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 12:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DayNumberOfYear/m-p/664002#M1074597</guid>
      <dc:creator>qlikconsultant</dc:creator>
      <dc:date>2014-11-26T12:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: DayNumberOfYear</title>
      <link>https://community.qlik.com/t5/QlikView/DayNumberOfYear/m-p/664003#M1074598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/127286"&gt;Getting the number of days between to dates&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See above post. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 12:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DayNumberOfYear/m-p/664003#M1074598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-26T12:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: DayNumberOfYear</title>
      <link>https://community.qlik.com/t5/QlikView/DayNumberOfYear/m-p/664004#M1074599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dargun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is late in the day but I've just had to do something similar relating to Day of Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To work out the leap year you could take advantage of the Mod function&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Mod&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateEntered&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),4) = 0 , 'Leap Year', 'Not Leap Year')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;though to be really accurate you'd have to add a bit to ignore when&amp;nbsp; Mod Year 100 = 0 unless Mod Year 400 = 0 but that is maybe forecasting a bit too far into the future depending on the app &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 11:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DayNumberOfYear/m-p/664004#M1074599</guid>
      <dc:creator />
      <dc:date>2015-02-26T11:39:44Z</dc:date>
    </item>
  </channel>
</rss>

