<?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: Define system date in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Define-system-date-in-script/m-p/745813#M667065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- you can set a variable at the date you want (as Anand suggested)&lt;/P&gt;&lt;P&gt;- but can't change the result of today() function because it use the system clock (well if you change your computer date / time you can)&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor474"&gt;&lt;/A&gt;&lt;A name="today"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;EM&gt;today(&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class="Italic"&gt;[timer_mode]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt; )&lt;/SPAN&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Returns the current date from the system clock. The &lt;SPAN class="Italic"&gt;timer_mode&lt;/SPAN&gt; may have the following values:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;0 Date at script run&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;1 Date at function call&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;2 Date when the document was opened&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Nov 2014 18:39:52 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-11-30T18:39:52Z</dc:date>
    <item>
      <title>Define system date in script</title>
      <link>https://community.qlik.com/t5/QlikView/Define-system-date-in-script/m-p/745809#M667061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;how can i set the system date to a date of my choosing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;SET SYSDATE = '09/09/2014'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order that Today() = &lt;SPAN style="font-size: 13.63636302948px;"&gt;09/09/2014&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 17:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-system-date-in-script/m-p/745809#M667061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-30T17:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Define system date in script</title>
      <link>https://community.qlik.com/t5/QlikView/Define-system-date-in-script/m-p/745810#M667062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niccolo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean formatting of system date.&lt;/P&gt;&lt;P&gt;If&amp;nbsp; so please check below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vStartDate = date(today(),'DD-MM-YYYY');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 18:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-system-date-in-script/m-p/745810#M667062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-30T18:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Define system date in script</title>
      <link>https://community.qlik.com/t5/QlikView/Define-system-date-in-script/m-p/745811#M667063</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;If you want to set your start date or make your choosing today date then write a variable like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vToday&amp;nbsp; = Date('09/09/2014','DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 18:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-system-date-in-script/m-p/745811#M667063</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-11-30T18:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Define system date in script</title>
      <link>https://community.qlik.com/t5/QlikView/Define-system-date-in-script/m-p/745812#M667064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;something similar to that: but i am not using a variable vToday, but i am using the function today().&lt;/P&gt;&lt;P&gt;I guess that the date that is referred to today() is some kind of sys date that i need to modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i do that?&lt;/P&gt;&lt;P&gt;tx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 18:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-system-date-in-script/m-p/745812#M667064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-30T18:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Define system date in script</title>
      <link>https://community.qlik.com/t5/QlikView/Define-system-date-in-script/m-p/745813#M667065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- you can set a variable at the date you want (as Anand suggested)&lt;/P&gt;&lt;P&gt;- but can't change the result of today() function because it use the system clock (well if you change your computer date / time you can)&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor474"&gt;&lt;/A&gt;&lt;A name="today"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;EM&gt;today(&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class="Italic"&gt;[timer_mode]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt; )&lt;/SPAN&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Returns the current date from the system clock. The &lt;SPAN class="Italic"&gt;timer_mode&lt;/SPAN&gt; may have the following values:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;0 Date at script run&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;1 Date at function call&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;2 Date when the document was opened&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 18:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-system-date-in-script/m-p/745813#M667065</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-11-30T18:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Define system date in script</title>
      <link>https://community.qlik.com/t5/QlikView/Define-system-date-in-script/m-p/745814#M667066</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;No i think that is not possible when use Today() or Now() they returns the system today date and time. But if you need the 09/09/2014 exactly for today date in the date model then use variable and use Addmonth( ) function to get date dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 18:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-system-date-in-script/m-p/745814#M667066</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-11-30T18:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Define system date in script</title>
      <link>https://community.qlik.com/t5/QlikView/Define-system-date-in-script/m-p/745815#M667067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you want to do this for testing using QV Desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If that is the case then have a look at the &lt;EM&gt;&lt;STRONG&gt;RunAsDate&lt;/STRONG&gt;&lt;/EM&gt; utility, Google it and you'll find it.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 18:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-system-date-in-script/m-p/745815#M667067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-30T18:58:51Z</dc:date>
    </item>
  </channel>
</rss>

