<?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 Question about date format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357647#M132702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, sorry. i used "and" not "&amp;amp;". But it is not working for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD column A;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;SELECT * FROM table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;WHERE Date BETWEEN today AND tomorrow&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD column A;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;SELECT * FROM table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;WHERE Date BETWEEN '$(&lt;STRONG&gt;vDate&lt;/STRONG&gt;)' AND '$Date(Num(&lt;STRONG&gt;vDate&lt;/STRONG&gt;) + 1)'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2012 16:50:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-17T16:50:25Z</dc:date>
    <item>
      <title>Question about date format</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357645#M132700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want my QlikView app to use the dates as I am using in the SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD column A;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;SELECT * FROM table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;WHERE Date BETWEEN today &amp;amp; tomorrow&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried several different ways, but it doesn't work for me. Does anyone know how to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to define a variable - &lt;STRONG&gt;vDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD column A;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;SELECT * FROM table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;WHERE Date BETWEEN '$(&lt;STRONG&gt;vDate&lt;/STRONG&gt;)' &amp;amp; '$Date(Num(&lt;STRONG&gt;vDate&lt;/STRONG&gt;) + 1)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 16:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357645#M132700</guid>
      <dc:creator />
      <dc:date>2012-05-17T16:30:09Z</dc:date>
    </item>
    <item>
      <title>Question about date format</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357646#M132701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think SQL BETWEEN syntax requires "and" not '&amp;amp;'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 16:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357646#M132701</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-05-17T16:45:15Z</dc:date>
    </item>
    <item>
      <title>Question about date format</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357647#M132702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, sorry. i used "and" not "&amp;amp;". But it is not working for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD column A;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;SELECT * FROM table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;WHERE Date BETWEEN today AND tomorrow&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD column A;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;SELECT * FROM table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;WHERE Date BETWEEN '$(&lt;STRONG&gt;vDate&lt;/STRONG&gt;)' AND '$Date(Num(&lt;STRONG&gt;vDate&lt;/STRONG&gt;) + 1)'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 16:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357647#M132702</guid>
      <dc:creator />
      <dc:date>2012-05-17T16:50:25Z</dc:date>
    </item>
    <item>
      <title>Question about date format</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357648#M132703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your end date formatting seems to be wrong. I would try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vStartDate = ...&lt;/P&gt;&lt;P&gt;LET vEndDate = ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE Date BETWEEN '$(vStartDate)' and '$(vEndDate)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure the date formatting in the variables matches how your dates are formatted in the DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 16:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357648#M132703</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-05-17T16:55:49Z</dc:date>
    </item>
    <item>
      <title>Question about date format</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357649#M132704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello, try this to avoid problems with formating which I think might be your problem now&lt;/P&gt;&lt;P&gt;vToday should be for example = 17/05/2012&lt;/P&gt;&lt;P&gt;vTomorrow should be for example = 18/05/2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where CONVERT(nvarchar(6),Date,103) &amp;gt;= '$(vToday)' and CONVERT(nvarchar(6),Date,103) &amp;gt;= '$(vTomorrow);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this, I use this to run some scripts and it works very well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 17:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357649#M132704</guid>
      <dc:creator />
      <dc:date>2012-05-17T17:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Question about date format</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357650#M132705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Thank you for the help guys!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;QlikView seems very picky.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;I tried this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Let vToday = Date(Today(),'MM/DD/YYYY');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Let vTomorrow = Date(Num(Today()) + 1,'MM/DD/YYYY');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;LOAD column A;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;SELECT * FROM table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;where Date("DATE",'MM/DD/YYYY') between '$(vToday)' and '$(vTomorrow)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;﻿I am confused why it's still not working.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 19:14:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357650#M132705</guid>
      <dc:creator />
      <dc:date>2012-05-17T19:14:53Z</dc:date>
    </item>
    <item>
      <title>Question about date format</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357651#M132706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial; min-height: 8pt; height: 8pt;"&gt; Try this:&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Let vToday = MakeDate(Today());&lt;/P&gt;&lt;P&gt;Let vTomorrow = MakeDate((Today() + 1));&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt;"&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 8pt; color: #0000ff;"&gt;&lt;STRONG style="font-size: 8pt;"&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG style="font-size: 8pt; color: #0000ff;"&gt;LOAD column A;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG style="font-size: 8pt; color: #0000ff;"&gt;SELECT * FROM table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial; min-height: 8pt; height: 8pt;"&gt;&lt;STRONG style="font-size: 8pt; color: #0000ff;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Date(Floor("DATE")) between '$(vToday)' and '$(vTomorrow)'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 19:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357651#M132706</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-05-17T19:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Question about date format</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357652#M132707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method does not work. the vToday value would be "1/1/41046".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 19:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357652#M132707</guid>
      <dc:creator />
      <dc:date>2012-05-17T19:29:00Z</dc:date>
    </item>
    <item>
      <title>Question about date format</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357653#M132708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you have these variables on your main sheet??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET DateFormat='DD/MM/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='DD/MM/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 19:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-date-format/m-p/357653#M132708</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-05-17T19:32:35Z</dc:date>
    </item>
  </channel>
</rss>

