<?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 Problem with date() in a if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-date-in-a-if-statement/m-p/173091#M502596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I defined a variable vHour with the actual hour&lt;/P&gt;&lt;P&gt;LET vHour = date(localtime(),'hh');&lt;/P&gt;&lt;P&gt;and now I wanted to test if vHour is 00&lt;/P&gt;&lt;P&gt;if vHour = '00' then ...&lt;/P&gt;&lt;P&gt;but it doesnt work. I also tested this:&lt;/P&gt;&lt;P&gt;if vHour = date(time('00:00:00'),'hh') then ...&lt;/P&gt;&lt;P&gt;Pleas help me&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Ingo Placzek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Aug 2010 06:39:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-25T06:39:00Z</dc:date>
    <item>
      <title>Problem with date() in a if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-in-a-if-statement/m-p/173091#M502596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I defined a variable vHour with the actual hour&lt;/P&gt;&lt;P&gt;LET vHour = date(localtime(),'hh');&lt;/P&gt;&lt;P&gt;and now I wanted to test if vHour is 00&lt;/P&gt;&lt;P&gt;if vHour = '00' then ...&lt;/P&gt;&lt;P&gt;but it doesnt work. I also tested this:&lt;/P&gt;&lt;P&gt;if vHour = date(time('00:00:00'),'hh') then ...&lt;/P&gt;&lt;P&gt;Pleas help me&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Ingo Placzek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 06:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-in-a-if-statement/m-p/173091#M502596</guid>
      <dc:creator />
      <dc:date>2010-08-25T06:39:00Z</dc:date>
    </item>
    <item>
      <title>Problem with date() in a if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-in-a-if-statement/m-p/173092#M502597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ingo&lt;/P&gt;&lt;P&gt;The Date function changes the text representation of the date value, but it returns the full date/time value (see 'dual' in the manual).&lt;/P&gt;&lt;P&gt;To get the time in hours, you could use &lt;B&gt;text(date(localtime(),'hh'))&lt;/B&gt; or &lt;B&gt;round(frac(localtime())*24, 1)&lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 07:23:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-in-a-if-statement/m-p/173092#M502597</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-08-25T07:23:05Z</dc:date>
    </item>
    <item>
      <title>Problem with date() in a if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-date-in-a-if-statement/m-p/173093#M502598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, it works &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 08:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-date-in-a-if-statement/m-p/173093#M502598</guid>
      <dc:creator />
      <dc:date>2010-08-25T08:58:53Z</dc:date>
    </item>
  </channel>
</rss>

