<?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: Date conversion and comparison in Where clause not successfull in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294440#M404249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has to be added in SQL part or in Load?&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, 15 Jun 2017 09:15:12 GMT</pubDate>
    <dc:creator>Qlik_Enthu</dc:creator>
    <dc:date>2017-06-15T09:15:12Z</dc:date>
    <item>
      <title>Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294438#M404247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my code. I have tried all the possible combos of date conversion functions to compare today`s date (mm/dd/yyyy) with a date field from the data source., but it is just not working. The date field is in ts format and I am finding it difficult to convert to mm/dd/yyyy format. ITs quite urgent and help on this is very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vToday&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1);&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ODBC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;CONNECT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[PT1025;DBQ=PT1025.IKEADT.COM]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;XUserId&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; RQNcTBdJTSaA, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;XPassword&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; efNSaBdJTaNOTbAN);&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ODBC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;CONNECT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[PT1028;DBQ=PT1028.IKEADT.COM]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;XUserId&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; PTdbUBdJTaFB, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;XPassword&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; cIGOeBdJTaNOTbYU);&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;QUALIFY&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;UNQUALIFY&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSORD_NO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- Start Multiple Select Statements ------&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"CUST_ORDER_EU"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;USER_ID_REF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSORD_NO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSORD_STAT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSORD_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'MM/DD/YYYY'),&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUST_NO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUS_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CTY_CODE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT &lt;BR /&gt; USER_ID_REF,&lt;BR /&gt; CUSORD_NO,&lt;BR /&gt; CUSORD_STAT,&lt;BR /&gt; Convert(CUSORD_DATE,101),&lt;BR /&gt; CUST_NO,&lt;BR /&gt; CUS_NAME,&lt;BR /&gt; CTY_CODE &lt;BR /&gt; FROM COS.CUSTOMER_ORDER WHERE &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"CUSORD_STAT"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ='00' AND &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"CUSORD_DATE"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vToday)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 09:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294438#M404247</guid>
      <dc:creator>Qlik_Enthu</dc:creator>
      <dc:date>2017-06-15T09:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294439#M404248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Date(Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;CUSORD_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,'mm/dd/yyyy'),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6667px;"&gt;'MM/DD/YYYY') as NewDate&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 09:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294439#M404248</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-06-15T09:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294440#M404249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has to be added in SQL part or in Load?&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, 15 Jun 2017 09:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294440#M404249</guid>
      <dc:creator>Qlik_Enthu</dc:creator>
      <dc:date>2017-06-15T09:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294441#M404250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share sample output ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can share format for the dates &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 09:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294441#M404250</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-06-15T09:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294442#M404251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi below is my data preview loaded from the table:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/166968_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 09:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294442#M404251</guid>
      <dc:creator>Qlik_Enthu</dc:creator>
      <dc:date>2017-06-15T09:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294443#M404252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and I have&amp;nbsp; variable which stores the value of today(1) in mm/dd/yyyy format. this has to be compared with the cusord_date value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 09:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294443#M404252</guid>
      <dc:creator>Qlik_Enthu</dc:creator>
      <dc:date>2017-06-15T09:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294444#M404253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date((Timestamp(&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6667px;"&gt;CUSORD_DATE&lt;/SPAN&gt;) ),'DD-MM-YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 09:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294444#M404253</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-06-15T09:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294445#M404254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not working!&lt;/P&gt;&lt;P&gt;Error: SQL##f - SqlState: S0022, ErrorCode: 904, ErrorMsg: [Oracle][ODBC][Ora]ORA-00904: "ORDER_DATE": invalid identifier&lt;/P&gt;&lt;P&gt;My Load and SQL code:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"CUST_ORDER_EU"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;USER_ID_REF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSORD_NO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSORD_STAT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSORD_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Timestamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSORD_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),'MM/DD/YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ORDER_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUST_NO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUS_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CTY_CODE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT &lt;BR /&gt; USER_ID_REF,&lt;BR /&gt; CUSORD_NO,&lt;BR /&gt; CUSORD_STAT,&lt;BR /&gt; CUSORD_DATE,&lt;BR /&gt; CUST_NO,&lt;BR /&gt; CUS_NAME,&lt;BR /&gt; CTY_CODE &lt;BR /&gt; FROM COS.CUSTOMER_ORDER WHERE &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"CUSORD_STAT"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ='00' AND &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"ORDER_DATE"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vToday)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 09:34:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294445#M404254</guid>
      <dc:creator>Qlik_Enthu</dc:creator>
      <dc:date>2017-06-15T09:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294446#M404255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you able to provide sample data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 09:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294446#M404255</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-15T09:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294447#M404256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first try to&amp;nbsp; load only table and convert it without any changes into qvd then change date format &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;NewTable:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;USER_ID_REF&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;CUSORD_NO&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;CUSORD_STAT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;CUSORD_DATE&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&lt;SPAN style="color: #0000ff;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;CUST_NO&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;CUS_NAME&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;CTY_CODE&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; SELECT &lt;BR /&gt;USER_ID_REF,&lt;BR /&gt;CUSORD_NO,&lt;BR /&gt;CUSORD_STAT,&lt;BR /&gt;CUSORD_DATE,&lt;BR /&gt;CUST_NO,&lt;BR /&gt;CUS_NAME,&lt;BR /&gt;CTY_CODE &lt;BR /&gt;FROM COS.CUSTOMER_ORDER WHERE &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;"CUSORD_STAT"&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; ='00' AND &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;"ORDER_DATE"&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; &amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;$(vToday)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 09:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294447#M404256</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-06-15T09:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294448#M404257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ORDER_DATE does not exist in the SQL source, and there is some confusion regarding date formats and Date() &amp;lt;format&amp;gt; and Date#() &amp;lt;interpret&amp;gt; functions. You say MM/DD/YYYY, but your sample above looks like M/D/YYYY. This code will fix those issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vToday = Date(Today(), 'M/D/YYYY');&amp;nbsp;&amp;nbsp; // or MM/DD/YYYY &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CUST_ORDER_EU:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD USER_ID_REF,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CUSORD_NO,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CUSORD_STAT,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CUSORD_DATE,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Date#(SubField(CUSORD_DATE, ' ', 1), 'M/D/YYYY') As ORDER_DATE, // strip time and interpret&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CUST_NO,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CUS_NAME,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CTY_CODE;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL SELECT &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; USER_ID_REF,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CUSORD_NO,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CUSORD_STAT,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CUSORD_DATE,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CUST_NO,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CUS_NAME,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CTY_CODE &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM COS.CUSTOMER_ORDER WHERE CUSORD_STAT ='00' AND CUSORD_DATE &amp;gt;= '$(vToday)';&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 09:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294448#M404257</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-06-15T09:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294449#M404258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anil, I am loading this data from DB and not sure I can pull out the sample data bcoz there are millions of records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 09:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294449#M404258</guid>
      <dc:creator>Qlik_Enthu</dc:creator>
      <dc:date>2017-06-15T09:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294450#M404259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there anything wrong with my script? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 09:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294450#M404259</guid>
      <dc:creator>Qlik_Enthu</dc:creator>
      <dc:date>2017-06-15T09:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294451#M404260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan, tried the above and getting the following error:&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: S1000, ErrorCode: 932, ErrorMsg: [Oracle][ODBC][Ora]ORA-00932: inconsistent datatypes: expected DATE got NUMBER&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;BR /&gt; USER_ID_REF,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUSORD_NO,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUSORD_STAT,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUSORD_DATE,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUST_NO,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUS_NAME,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CTY_CODE &lt;BR /&gt;FROM COS.CUSTOMER_ORDER WHERE "CUSORD_STAT" ='00' AND "CUSORD_DATE" &amp;gt;=06/15/2017&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 09:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294451#M404260</guid>
      <dc:creator>Qlik_Enthu</dc:creator>
      <dc:date>2017-06-15T09:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294452#M404261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt; "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CUSORD_DATE&lt;/SPAN&gt;" &amp;gt; = '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;06/15/2017&lt;/SPAN&gt;'; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 10:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294452#M404261</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-06-15T10:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294453#M404262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PM actually&amp;nbsp; the date variable holding today`s date works fine..the problem is with the sql conversion only. However tried this&amp;nbsp; and no luck! says "not a valid month"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 10:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294453#M404262</guid>
      <dc:creator>Qlik_Enthu</dc:creator>
      <dc:date>2017-06-15T10:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294454#M404263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check your date format in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 10:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294454#M404263</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-06-15T10:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294455#M404264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure but&amp;nbsp; try like this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"CUSORD_DATE" &amp;gt;=&amp;nbsp; SYSDATE&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 10:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294455#M404264</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-06-15T10:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294456#M404265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have initially tried this. This will execute but wont fetch any records bcoz SYSDATE resides in DUal table. In my DB Dual table is dummy and doesn't have any fields nor data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 10:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294456#M404265</guid>
      <dc:creator>Qlik_Enthu</dc:creator>
      <dc:date>2017-06-15T10:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and comparison in Where clause not successfull</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294457#M404266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to check Description of table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Describe &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;COS.CUSTOMER_ORDER;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 10:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-comparison-in-Where-clause-not-successfull/m-p/1294457#M404266</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-06-15T10:42:42Z</dc:date>
    </item>
  </channel>
</rss>

