<?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: Current Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-Date/m-p/514584#M1141310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vYesterday = date(today()-1,'YYYY-MM-DD'); // should match the format of your DB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DATE FROM DB WHERE DATE = '$(vYesterday)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Sep 2013 13:05:06 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-09-12T13:05:06Z</dc:date>
    <item>
      <title>Current Date</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Date/m-p/514581#M1141307</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to load a script. It connects to a DB and there i would like to load the data.&lt;/P&gt;&lt;P&gt;Is it possible to get the day yesterday and put it into where?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 12:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Date/m-p/514581#M1141307</guid>
      <dc:creator />
      <dc:date>2013-09-12T12:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Current Date</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Date/m-p/514582#M1141308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can put the date into a variable:&lt;/P&gt;&lt;P&gt;Let yourVariable = Date(Today() -1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 13:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Date/m-p/514582#M1141308</guid>
      <dc:creator>Andrea_Ghirardello</dc:creator>
      <dc:date>2013-09-12T13:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Current Date</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Date/m-p/514583#M1141309</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;Yes it's possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * where datefield &amp;lt;= Date(today()-1);&lt;/P&gt;&lt;P&gt;Select * from tablename;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: &lt;/P&gt;&lt;P&gt;both datefields are in same format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 13:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Date/m-p/514583#M1141309</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-09-12T13:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Current Date</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Date/m-p/514584#M1141310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vYesterday = date(today()-1,'YYYY-MM-DD'); // should match the format of your DB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DATE FROM DB WHERE DATE = '$(vYesterday)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 13:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Date/m-p/514584#M1141310</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-12T13:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Current Date</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Date/m-p/514585#M1141311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this in your edit script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vDateToday = date(Today()-1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you could go to settings - &amp;gt; Variable overview -&amp;gt; add new and type date(today()-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also use this in your where statement from SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where cast(date as date) = cast(getdate()-1 as date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 13:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Date/m-p/514585#M1141311</guid>
      <dc:creator />
      <dc:date>2013-09-12T13:06:32Z</dc:date>
    </item>
  </channel>
</rss>

