<?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: Difference between today's date and a date field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-today-s-date-and-a-date-field/m-p/1358710#M416702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the dates are read as dates, you can just do this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Today(1) - &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;ProjectLiveDate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If for some reason, QlikView doesn't understand your date, then this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Today(1) - Date#(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;ProjectLiveDate, 'M/D/YYYY')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Apr 2017 08:04:54 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-04-07T08:04:54Z</dc:date>
    <item>
      <title>Difference between today's date and a date field</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-today-s-date-and-a-date-field/m-p/1358709#M416701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I proceed to get the difference between the dates stored in ProjectLiveDate and the current date so that the difference will be in days.&lt;/P&gt;&lt;P&gt;Example: If ProjectLiveDate is 3/27/2017 in M/D/YYYY format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and today's date is 4/7/2017 in M/D/YYYY format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the difference will be 11 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 06:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-today-s-date-and-a-date-field/m-p/1358709#M416701</guid>
      <dc:creator />
      <dc:date>2017-04-07T06:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between today's date and a date field</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-today-s-date-and-a-date-field/m-p/1358710#M416702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the dates are read as dates, you can just do this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Today(1) - &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;ProjectLiveDate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If for some reason, QlikView doesn't understand your date, then this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Today(1) - Date#(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;ProjectLiveDate, 'M/D/YYYY')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 08:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-today-s-date-and-a-date-field/m-p/1358710#M416702</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-07T08:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between today's date and a date field</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-today-s-date-and-a-date-field/m-p/1358711#M416703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if you have time stamp for hour/min/sec, you might try with interval() like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM&gt;Interval(&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;Today(1) - Date#(&lt;/EM&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;ProjectLiveDate, 'M/D/YYYY') , &lt;STRONG&gt;'D')&lt;/STRONG&gt; as &lt;STRONG&gt;DayDiff&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 08:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-today-s-date-and-a-date-field/m-p/1358711#M416703</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-04-07T08:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between today's date and a date field</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-today-s-date-and-a-date-field/m-p/1358712#M416704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ and &lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco&lt;/A&gt;‌, saw your answers now. I tried &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATEDIFF(DAY,ProjectLiveDate,GETDATE()) as LiveDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and it worked at my end. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Apr 2017 11:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-today-s-date-and-a-date-field/m-p/1358712#M416704</guid>
      <dc:creator />
      <dc:date>2017-04-09T11:17:59Z</dc:date>
    </item>
  </channel>
</rss>

