<?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: Issues with selecting with date ranges?! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issues-with-selecting-with-date-ranges/m-p/420166#M698499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That might or might not work. If your variables are numeric dates and DEADLINE_DATE also is a numeric date field it&amp;nbsp; should work. If not you need to make sure the dates have the same date format and you might need to use single quotes around the variable expansion: &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;WHERE DEADLINE_DATE BETWEEN '$(FromDate)' AND '$(ToDate)'. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;It could even be that you need to use a function like &lt;A href="http://docs.oracle.com/cd/E11882_01/server.112/e17118/functions203.htm"&gt;to_date&lt;/A&gt; (for oracle) or &lt;A href="http://msdn.microsoft.com/en-us/library/ms187928.aspx"&gt;convert&lt;/A&gt; (for sql server) to cast a string to a date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2013 17:36:42 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-02-08T17:36:42Z</dc:date>
    <item>
      <title>Issues with selecting with date ranges?!</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-with-selecting-with-date-ranges/m-p/420165#M698498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to make a select from an ODBC connection using this select: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT TASK_ID, CANCELLED_DATE, CLOSED_TIME, CLOSED_DATE, DEADLINE_DATE, DEADLINE_TIME, DOCUMENT_TYPE, TASK_FAULT_CODE_ID, TASK_TYPE, X_OPEN&lt;/P&gt;&lt;P&gt;FROM REP_TASK_NF WHERE DEADLINE_DATE BETWEEN $(FromDate) AND $(ToDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(FromDate) and $(ToDate) are both variables being used in a Calender Object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am i going the right way about this or is the not the best way of going about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 17:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-with-selecting-with-date-ranges/m-p/420165#M698498</guid>
      <dc:creator />
      <dc:date>2013-02-08T17:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with selecting with date ranges?!</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-with-selecting-with-date-ranges/m-p/420166#M698499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That might or might not work. If your variables are numeric dates and DEADLINE_DATE also is a numeric date field it&amp;nbsp; should work. If not you need to make sure the dates have the same date format and you might need to use single quotes around the variable expansion: &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;WHERE DEADLINE_DATE BETWEEN '$(FromDate)' AND '$(ToDate)'. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;It could even be that you need to use a function like &lt;A href="http://docs.oracle.com/cd/E11882_01/server.112/e17118/functions203.htm"&gt;to_date&lt;/A&gt; (for oracle) or &lt;A href="http://msdn.microsoft.com/en-us/library/ms187928.aspx"&gt;convert&lt;/A&gt; (for sql server) to cast a string to a date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 17:36:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-with-selecting-with-date-ranges/m-p/420166#M698499</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-08T17:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with selecting with date ranges?!</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-with-selecting-with-date-ranges/m-p/420167#M698501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried putting the variables inside ' ' and that doesnt seem to let me select with both a FromDate and ToDate.&lt;/P&gt;&lt;P&gt; How to do I go about using the convert function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 10:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-with-selecting-with-date-ranges/m-p/420167#M698501</guid>
      <dc:creator />
      <dc:date>2013-02-11T10:15:06Z</dc:date>
    </item>
  </channel>
</rss>

