<?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: date = today() problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/date-today-problem/m-p/247538#M1189832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Floor() and daystart() both worked just fine for me in your file.&amp;nbsp; Here are the working expressions in case there was some confusion as to what I was suggesting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=IF(floor(END_TIME) = TODAY(), END_TIME)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=IF(daystart(END_TIME) = TODAY(), END_TIME)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as date() goes, date() is a formatting function.&amp;nbsp; It is FORMATTING the field as a date.&amp;nbsp; That does not change how it is stored internally.&amp;nbsp; When you use =, you are comparing the INTERNAL values, not the displayed values.&amp;nbsp; A timestamp formatted as a date is still a timestamp, so won't match a date unless it happens to be exactly midnight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set analysis behaves differently, as it is using the search expression logic internally, which results in a text comparison, so a date() function there WOULD work.&amp;nbsp; But it won't work in an if() - one of those little internal inconsistencies that annoy me, but I live with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Aug 2011 20:55:49 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-08-03T20:55:49Z</dc:date>
    <item>
      <title>date = today() problem</title>
      <link>https://community.qlik.com/t5/QlikView/date-today-problem/m-p/247535#M1189829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong with the below statement? It doesnt seem to return anything. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(date(END_TIME) = TODAY(), END_TIME)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 19:49:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-today-problem/m-p/247535#M1189829</guid>
      <dc:creator />
      <dc:date>2011-08-03T19:49:20Z</dc:date>
    </item>
    <item>
      <title>date = today() problem</title>
      <link>https://community.qlik.com/t5/QlikView/date-today-problem/m-p/247536#M1189830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm guessing END_TIME is a timestamp?&amp;nbsp; The date() function is a formatting function only, so you're still comparing a timestamp to a date.&amp;nbsp; Try using the floor() or daystart() function instead to remove the time portion and leave you with a date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 19:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-today-problem/m-p/247536#M1189830</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-08-03T19:54:53Z</dc:date>
    </item>
    <item>
      <title>date = today() problem</title>
      <link>https://community.qlik.com/t5/QlikView/date-today-problem/m-p/247537#M1189831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With date(end_time), it does extract the date for me.. just that it somehow doesnt work then i try and use the = sign.&lt;/P&gt;&lt;P&gt;Floor and daystart are not working either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching the application to show you the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 20:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-today-problem/m-p/247537#M1189831</guid>
      <dc:creator />
      <dc:date>2011-08-03T20:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: date = today() problem</title>
      <link>https://community.qlik.com/t5/QlikView/date-today-problem/m-p/247538#M1189832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Floor() and daystart() both worked just fine for me in your file.&amp;nbsp; Here are the working expressions in case there was some confusion as to what I was suggesting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=IF(floor(END_TIME) = TODAY(), END_TIME)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=IF(daystart(END_TIME) = TODAY(), END_TIME)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as date() goes, date() is a formatting function.&amp;nbsp; It is FORMATTING the field as a date.&amp;nbsp; That does not change how it is stored internally.&amp;nbsp; When you use =, you are comparing the INTERNAL values, not the displayed values.&amp;nbsp; A timestamp formatted as a date is still a timestamp, so won't match a date unless it happens to be exactly midnight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set analysis behaves differently, as it is using the search expression logic internally, which results in a text comparison, so a date() function there WOULD work.&amp;nbsp; But it won't work in an if() - one of those little internal inconsistencies that annoy me, but I live with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 20:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-today-problem/m-p/247538#M1189832</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-08-03T20:55:49Z</dc:date>
    </item>
    <item>
      <title>date = today() problem</title>
      <link>https://community.qlik.com/t5/QlikView/date-today-problem/m-p/247539#M1189833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the detailed explanation!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 20:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-today-problem/m-p/247539#M1189833</guid>
      <dc:creator />
      <dc:date>2011-08-03T20:59:07Z</dc:date>
    </item>
  </channel>
</rss>

