<?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 How does function Today() work? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307525#M113572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See &lt;A href="http://qlikviewnotes.blogspot.com/2010/07/now-trap.html"&gt;http://qlikviewnotes.blogspot.com/2010/07/now-trap.html&lt;/A&gt; for more on this issue. The blog discusses now(), but applies to today() as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2011 16:01:02 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2011-12-16T16:01:02Z</dc:date>
    <item>
      <title>How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307507#M113554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using QV10 SR2 and I'm a little bit confused about function Today(). In help it states that there are 3 different modes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;0 Date at script run&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1 Date at function call&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2 Date when the document was opened&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;EM&gt;Default &lt;/EM&gt;&lt;EM&gt; &lt;/EM&gt;timer_mode is 2. The timer_mode = 1 should be used with caution, since it polls the operating system every second and hence could slow down the system.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I execute it in mode 2 (default) or 0, it gives me old dates. I would expect that...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;2 gives me the date when the document was opened. That means if it is reloaded by server then it should be the date when the server touches the document.&lt;/LI&gt;&lt;LI&gt;0 gives me the date when the script runs. That means if it is reloaded by Server then it should be the date when script execution starts.&lt;/LI&gt;&lt;LI&gt;1 gives me the date when the function is called. That means if it is reloaded by Server then it should be the date when exactly this function is reached while script execution.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what's wrong then?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 09:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307507#M113554</guid>
      <dc:creator />
      <dc:date>2011-12-16T09:14:08Z</dc:date>
    </item>
    <item>
      <title>How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307508#M113555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, einsTeln.NET,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is easy, you get allways the systemdate from windows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 = date from today only one systemcall at reload the document (not only from Server, even direct reload)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 = date of the last reload (not only from Server, even direct reload) and this is not like Date(ReloadTime())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 = date, that is permanently checked with the system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings from Munich&lt;/P&gt;&lt;P&gt;Martina&lt;/P&gt;&lt;P&gt;EVACO GmbH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 09:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307508#M113555</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-12-16T09:28:10Z</dc:date>
    </item>
    <item>
      <title>How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307509#M113556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I know that it is looking at system's clock. I already checked if the clock is alright.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, that would mean if I use mode 0 (last reload) and I reload once a day then it would give me always the date of the last day. That is not what I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If mode 2 should give me the date when the current reload started then it definitely doesn't work (or in contrast to what is stated in help mode 2 isn't default).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 09:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307509#M113556</guid>
      <dc:creator />
      <dc:date>2011-12-16T09:45:34Z</dc:date>
    </item>
    <item>
      <title>How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307510#M113557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;once again:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;today() or Today(2) means the systemdate of your computer resp. server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;today(0) is the date of the previous reload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ReloadTime() is the timestamp of your last reload&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 09:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307510#M113557</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-12-16T09:51:51Z</dc:date>
    </item>
    <item>
      <title>How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307511#M113558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I understand. But Today() [which should be the same like Today(2)] gives me an old date even though the server's system date is correct. I scheduled a reload of that document at about 2 o'clock am and it gives me the date of the day before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 10:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307511#M113558</guid>
      <dc:creator />
      <dc:date>2011-12-16T10:02:21Z</dc:date>
    </item>
    <item>
      <title>How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307512#M113559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you sure, that the date on the server is right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 10:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307512#M113559</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-12-16T10:18:58Z</dc:date>
    </item>
    <item>
      <title>How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307513#M113560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I checked it several times. I think I'm going mad...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 10:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307513#M113560</guid>
      <dc:creator />
      <dc:date>2011-12-16T10:25:51Z</dc:date>
    </item>
    <item>
      <title>How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307514#M113561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the function Now() or Date(Now()) to look at the date of the server. But be careful, it shows every second.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 10:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307514#M113561</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-12-16T10:29:45Z</dc:date>
    </item>
    <item>
      <title>How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307515#M113562</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;Today() returns always using the format stored into the script DateFormat variable (usually at the top of the first tab). Is that format correct? What does it return when you use Now() instead? (Should get the current date and time).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 10:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307515#M113562</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-12-16T10:34:30Z</dc:date>
    </item>
    <item>
      <title>How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307516#M113563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Now() gives me the current datatime, works! Date format is also correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 11:48:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307516#M113563</guid>
      <dc:creator />
      <dc:date>2011-12-16T11:48:14Z</dc:date>
    </item>
    <item>
      <title>How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307517#M113564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then must Today() give also the right value!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 11:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307517#M113564</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-12-16T11:56:28Z</dc:date>
    </item>
    <item>
      <title>How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307518#M113565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm with you, but don't forget I tested it by now and not on daily reload. It looks like the first reload on a new day returns the old date of the day before, every ﻿﻿﻿subsequently ﻿reload seems to work.﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 12:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307518#M113565</guid>
      <dc:creator />
      <dc:date>2011-12-16T12:06:35Z</dc:date>
    </item>
    <item>
      <title>How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307519#M113566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, so that makes me crazy, too!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 12:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307519#M113566</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-12-16T12:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307520#M113567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like it uses Today(0).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 12:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307520#M113567</guid>
      <dc:creator />
      <dc:date>2011-12-16T12:23:32Z</dc:date>
    </item>
    <item>
      <title>How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307521#M113568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May I ask where you use the today() call? In the script or UI?&lt;/P&gt;&lt;P&gt;And you use the Server to schedule the reload?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use it in the script and you want to make sure to always get the current date, I would suggest to use Today(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the script run date ( Today(0) ) will not be set before after the run has finished.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 14:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307521#M113568</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-16T14:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307522#M113569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yeah, you are right. It's in the script and the reload is scheduled on server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right, my current workaround is to use Today(1). But from my point of view it should also work if I use Today() or Today(2). And help says something about performance issues when I use Today(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;swuehl schrieb:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the script run date ( Today(0) ) will not be set before after the run has finished.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Yes, Martina already mentioned that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 14:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307522#M113569</guid>
      <dc:creator />
      <dc:date>2011-12-16T14:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307523#M113570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I believe you won't get any performance issues in the script. This note is considering UI use only, IMHO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I intended to say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today(0) will return the date of the last successful script run. So, on the first run of a day, you get the previous day returned (edit: if called from the script, like in this case!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure about today() / today(2), this might be depending on how the server handles your document while reloading / if your document is already open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 14:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307523#M113570</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-16T14:29:03Z</dc:date>
    </item>
    <item>
      <title>How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307524#M113571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, that's it. Help considers only use in UI, not in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means if reload is done by server then the document isn't really open. If I use Today()/Today(2) in script then I get the date when I last opened the document in QV client. That means the only way to get around this is to use Today(1) instead (only true if used just in script)!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers everybody!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 14:44:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307524#M113571</guid>
      <dc:creator />
      <dc:date>2011-12-16T14:44:43Z</dc:date>
    </item>
    <item>
      <title>How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307525#M113572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See &lt;A href="http://qlikviewnotes.blogspot.com/2010/07/now-trap.html"&gt;http://qlikviewnotes.blogspot.com/2010/07/now-trap.html&lt;/A&gt; for more on this issue. The blog discusses now(), but applies to today() as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 16:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307525#M113572</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-12-16T16:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: How does function Today() work?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307526#M113573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Today(0) is the date of the previous reload not &lt;EM&gt;the date at script run !!!&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 16:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-function-Today-work/m-p/307526#M113573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-16T16:20:04Z</dc:date>
    </item>
  </channel>
</rss>

