<?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 Getting the number of days between to dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661212#M1074793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;BR /&gt;I am working with showing a list of upcoming birthdays. I have fields with the the date of birth that i can use to do this. I am able to calculate the age using the age() function. I also want to calculate how many days it is until each persons birthday, but I am unable to figure out how to do this.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2014 07:33:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-28T07:33:06Z</dc:date>
    <item>
      <title>Getting the number of days between to dates</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661212#M1074793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;BR /&gt;I am working with showing a list of upcoming birthdays. I have fields with the the date of birth that i can use to do this. I am able to calculate the age using the age() function. I also want to calculate how many days it is until each persons birthday, but I am unable to figure out how to do this.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 07:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661212#M1074793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-28T07:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the number of days between to dates</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661213#M1074795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dagrun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Date of Birth(field) - today() to get the number of days until each persons birthday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sabal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 07:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661213#M1074795</guid>
      <dc:creator />
      <dc:date>2014-07-28T07:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the number of days between to dates</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661214#M1074797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Today(),'MM-DD-YYYY') - Date(Date_of_Birth,'MM-DD-YYYY')&amp;nbsp; as NoOfDays&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Regards,&lt;/P&gt;&lt;P&gt;Vishal Waghole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 07:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661214#M1074797</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2014-07-28T07:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the number of days between to dates</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661215#M1074799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I did that I got some strange output.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I found almost worked was using:&lt;BR /&gt;DayNumberOfYear(date(dateOfBirth)) - DayNumberOfYear(date(today))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does give me the number of days until the birthday in the current year, but if the birthday has already happened this year I want it to calculate the number of days until the birthday in the next year. Other ways I will get strange output for the number of days till the closest birthday in the end of December&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 07:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661215#M1074799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-28T07:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the number of days between to dates</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661216#M1074801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh and I guess there will also be a problem if the person was born in a leap year, but the current one is not a leap year. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 09:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661216#M1074801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-28T09:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the number of days between to dates</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661217#M1074802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(Date(DateOfBirth)&amp;lt;Today(), num(Addmonths(Date(DateOfBirth),12)) - num(Today()),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Date(DateOfBirth)) - num(Today())) as NoOfDays,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 09:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661217#M1074802</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-07-28T09:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the number of days between to dates</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661218#M1074803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dagrun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;=If(MakeDate(Year(Today()),Month(dateOfBirth),Day(dateOfBirth))&amp;gt;=Today(),MakeDate(Year(Today()),Month(dateOfBirth),Day(dateOfBirth))-Today(),MakeDate(Year(addyears(Today(),1)),Month(dateOfBirth),Day(dateOfBirth))-Today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it works.&lt;/P&gt;&lt;P&gt;If not, just check for the "dateOfBirth" format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sabal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 09:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661218#M1074803</guid>
      <dc:creator />
      <dc:date>2014-07-28T09:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the number of days between to dates</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661219#M1074804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would simply do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vYear = right(Today(), 7);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left(DOB, 2) &amp;amp; '/' &amp;amp; mid(DOB, 4,2) &amp;amp; '/' &amp;amp; vYear as [DOB Calculation]&lt;/P&gt;&lt;P&gt;FROM xxx.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DOB Calculation] - Today() as [Days to go]&lt;/P&gt;&lt;P&gt;RESIDENT TEMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE TEMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 09:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661219#M1074804</guid>
      <dc:creator />
      <dc:date>2014-07-28T09:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the number of days between to dates</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661220#M1074805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked. thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 10:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-number-of-days-between-to-dates/m-p/661220#M1074805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-28T10:17:51Z</dc:date>
    </item>
  </channel>
</rss>

