<?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 Date format issue when connecting to DB2 database in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-format-issue-when-connecting-to-DB2-database/m-p/2478081#M100441</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am connecting to DB2 Server and applying a simple date filter in where condition as shown below&lt;/P&gt;
&lt;P&gt;SQL SELECT *&lt;BR /&gt;FROM XYZ&amp;nbsp; where TDATE='22-08-2024';&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FROM XYZ&amp;nbsp; where TDATE='$(vDate)';&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;TDATE is in 'DD-MM-YYYY' format in the database so is vDate variable.&lt;/P&gt;
&lt;P&gt;But I get an error :&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;QVX_UNEXPECTED_END_OF_DATA: SQL##f - SqlState: 22007, ErrorCode: 4294967115, ErrorMsg: [IBM][CLI Driver][DB2/LINUXX8664] SQL0181N &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;The string representation of a datetime value is out of range. SQLSTATE=22007&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;This seems to be issue related to DB2.Can anyone please suggest?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="QlikView" id="qlikView"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 20:53:10 GMT</pubDate>
    <dc:creator>Adorable09</dc:creator>
    <dc:date>2024-11-15T20:53:10Z</dc:date>
    <item>
      <title>Date format issue when connecting to DB2 database</title>
      <link>https://community.qlik.com/t5/App-Development/Date-format-issue-when-connecting-to-DB2-database/m-p/2478081#M100441</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am connecting to DB2 Server and applying a simple date filter in where condition as shown below&lt;/P&gt;
&lt;P&gt;SQL SELECT *&lt;BR /&gt;FROM XYZ&amp;nbsp; where TDATE='22-08-2024';&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FROM XYZ&amp;nbsp; where TDATE='$(vDate)';&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;TDATE is in 'DD-MM-YYYY' format in the database so is vDate variable.&lt;/P&gt;
&lt;P&gt;But I get an error :&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;QVX_UNEXPECTED_END_OF_DATA: SQL##f - SqlState: 22007, ErrorCode: 4294967115, ErrorMsg: [IBM][CLI Driver][DB2/LINUXX8664] SQL0181N &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;The string representation of a datetime value is out of range. SQLSTATE=22007&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;This seems to be issue related to DB2.Can anyone please suggest?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="QlikView" id="qlikView"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 20:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-format-issue-when-connecting-to-DB2-database/m-p/2478081#M100441</guid>
      <dc:creator>Adorable09</dc:creator>
      <dc:date>2024-11-15T20:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Date format issue when connecting to DB2 database</title>
      <link>https://community.qlik.com/t5/App-Development/Date-format-issue-when-connecting-to-DB2-database/m-p/2478139#M100445</link>
      <description>&lt;P&gt;Where-clauses with dates in databases can be tricky, depending on how the dates are stored. Often you need to use Cast() or some formatting function. Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;WHERE VARCHAR_FORMAT (TDATE,'YYYY-MM-DD') = '2024-08-22' ;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 08:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-format-issue-when-connecting-to-DB2-database/m-p/2478139#M100445</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2024-08-27T08:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date format issue when connecting to DB2 database</title>
      <link>https://community.qlik.com/t5/App-Development/Date-format-issue-when-connecting-to-DB2-database/m-p/2478184#M100451</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622"&gt;@hic&lt;/a&gt;&amp;nbsp;Thanks it works .Looks like&amp;nbsp;TDATE accepts YYYY-MM-DD OR M/DD/YYYY format.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 11:08:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-format-issue-when-connecting-to-DB2-database/m-p/2478184#M100451</guid>
      <dc:creator>Adorable09</dc:creator>
      <dc:date>2024-08-27T11:08:09Z</dc:date>
    </item>
  </channel>
</rss>

