<?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: Subtract a date from today's date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtract-a-date-from-today-s-date/m-p/1559312#M598972</link>
    <description>&lt;P&gt;Hi Vegar&lt;/P&gt;&lt;P&gt;Many thanks, this worked for me,&amp;nbsp;&lt;/P&gt;&lt;P&gt;today()- BLOTLOT_CREATED as "AgeDays"&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2019 22:57:12 GMT</pubDate>
    <dc:creator>KevinG</dc:creator>
    <dc:date>2019-03-20T22:57:12Z</dc:date>
    <item>
      <title>Subtract a date from today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-a-date-from-today-s-date/m-p/1559284#M598970</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I am new to QV, so please bear with me,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate the age of stock items, so, in the load script i want to subtract the stock created date (dd/mm/yy) from the today (run date).&lt;/P&gt;&lt;P&gt;how can i achieve this please.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 20:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-a-date-from-today-s-date/m-p/1559284#M598970</guid>
      <dc:creator>KevinG</dc:creator>
      <dc:date>2019-03-20T20:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract a date from today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-a-date-from-today-s-date/m-p/1559309#M598971</link>
      <description>&lt;P&gt;Just substract the two dates and you will get no of days. You can also use the AGE() function to get the age in years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SET DateFormat='DD/MM/YYYY';  //Environmental variable 

LOAD *,
today()-CreateDate as AgeDays,
Age(today(), CreateDate) as AgeYears
INLINE [
CreateDate,Stock,last_name
14/03/2019,OPY,219.09
16/12/2018,LVS,51.49
17/10/2018,CBZ,824
23/02/2019,COTV,3.5
13/09/2018,ESGU,5.34
31/03/2018,TAST,450.72
12/06/2018,STE,6.96
23/07/2018,SAFM,2.88
31/10/2018,PAY,1.93
06/12/2017,PKI,7
];&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Mar 2019 22:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-a-date-from-today-s-date/m-p/1559309#M598971</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-20T22:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract a date from today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-a-date-from-today-s-date/m-p/1559312#M598972</link>
      <description>&lt;P&gt;Hi Vegar&lt;/P&gt;&lt;P&gt;Many thanks, this worked for me,&amp;nbsp;&lt;/P&gt;&lt;P&gt;today()- BLOTLOT_CREATED as "AgeDays"&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 22:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-a-date-from-today-s-date/m-p/1559312#M598972</guid>
      <dc:creator>KevinG</dc:creator>
      <dc:date>2019-03-20T22:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract a date from today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-a-date-from-today-s-date/m-p/1735747#M598973</link>
      <description>&lt;P&gt;Hi! I have a similar problem... I also need to calculate the number of years between today() and another date and I'm putting qlik to read the function from a google sheet file. All functions seem to work fine but this in particular is giving me some trouble.&amp;nbsp;&lt;BR /&gt;I wrote:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Age(Today(), [FECHA_NACIMIENTO])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I don't know what is wrong with it. If you get some ideas I would really appreciate to know. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 18:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-a-date-from-today-s-date/m-p/1735747#M598973</guid>
      <dc:creator>Adri7</dc:creator>
      <dc:date>2020-08-13T18:54:18Z</dc:date>
    </item>
  </channel>
</rss>

