<?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: Creating a string variable for today's date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-string-variable-for-today-s-date/m-p/353063#M1169787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Above the load portion of the scrip put:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vDate = Chr(39) &amp;amp;amp; Date(Today(),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use the SELECT statement exactly as you write above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2012 17:49:18 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2012-07-16T17:49:18Z</dc:date>
    <item>
      <title>Creating a string variable for today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-string-variable-for-today-s-date/m-p/353062#M1169786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to query a postgres database to load a table. I need to make the query dinamic. For Example, a simple query would look like this: &lt;/P&gt;&lt;P&gt;SELECT * &lt;/P&gt;&lt;P&gt;FROM&amp;nbsp; table1&lt;/P&gt;&lt;P&gt;WHERE date(reportdate) = '2012-07-16' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to feed the date&amp;nbsp; '2012-07-16' in WHERE statement above using today() function in the qlikview. So I need to convert the result of the Today() function in a string which looks like&amp;nbsp; '2012-07-16'.&amp;nbsp; so that i can write above query as:&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp; table1&lt;/P&gt;&lt;P&gt;WHERE date(reportdate) = $(vdate) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this query $(vdate) should produce '2012-07-16'. How can i do that?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 17:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-string-variable-for-today-s-date/m-p/353062#M1169786</guid>
      <dc:creator />
      <dc:date>2012-07-16T17:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a string variable for today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-string-variable-for-today-s-date/m-p/353063#M1169787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Above the load portion of the scrip put:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vDate = Chr(39) &amp;amp;amp; Date(Today(),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use the SELECT statement exactly as you write above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 17:49:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-string-variable-for-today-s-date/m-p/353063#M1169787</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-07-16T17:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a string variable for today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-string-variable-for-today-s-date/m-p/353064#M1169788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PS - the 'amp;' is my iPhone playing silly buggers....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 17:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-string-variable-for-today-s-date/m-p/353064#M1169788</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-07-16T17:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a string variable for today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-string-variable-for-today-s-date/m-p/353065#M1169789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PPS - I forgot the closing Chr(39)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vDate = Chr(39) &amp;amp;amp; Date(Today(),'YYYY-MM-DD') &amp;amp;amp; Chr(39);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(been a long day..)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 17:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-string-variable-for-today-s-date/m-p/353065#M1169789</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-07-16T17:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a string variable for today's date</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-string-variable-for-today-s-date/m-p/353066#M1169790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked. Thank you. Have a good one. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 19:07:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-string-variable-for-today-s-date/m-p/353066#M1169790</guid>
      <dc:creator />
      <dc:date>2012-07-16T19:07:27Z</dc:date>
    </item>
  </channel>
</rss>

