<?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: TO_CHAR issues in qlikview script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/TO-CHAR-issues-in-qlikview-script/m-p/1008934#M958944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;LAST_MOVE_DATETIME is a date &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;you're doing a BETWEEN with a date on the left side and 2 char on the right side&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;this is the reason of the error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;use always date (better) ---&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;LAST_MOVE_DATETIME BETWEEN SYSDATE-2 AND SYSDATE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;or always char&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2015 12:09:18 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-11-02T12:09:18Z</dc:date>
    <item>
      <title>TO_CHAR issues in qlikview script</title>
      <link>https://community.qlik.com/t5/QlikView/TO-CHAR-issues-in-qlikview-script/m-p/1008933#M958943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used below line inside qlikview script SQL under the where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LAST_MOVE_DATETIME BETWEEN&amp;nbsp; TO_CHAR(SYSDATE-('2'), 'YYYY-MM-DD') AND TO_CHAR(SYSDATE, 'YYYY-MM-DD')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives me the error ora-01861 literal does not match format string. But when i run that in database it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 11:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TO-CHAR-issues-in-qlikview-script/m-p/1008933#M958943</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-11-02T11:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: TO_CHAR issues in qlikview script</title>
      <link>https://community.qlik.com/t5/QlikView/TO-CHAR-issues-in-qlikview-script/m-p/1008934#M958944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;LAST_MOVE_DATETIME is a date &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;you're doing a BETWEEN with a date on the left side and 2 char on the right side&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;this is the reason of the error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;use always date (better) ---&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;LAST_MOVE_DATETIME BETWEEN SYSDATE-2 AND SYSDATE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;or always char&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 12:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TO-CHAR-issues-in-qlikview-script/m-p/1008934#M958944</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-11-02T12:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: TO_CHAR issues in qlikview script</title>
      <link>https://community.qlik.com/t5/QlikView/TO-CHAR-issues-in-qlikview-script/m-p/1008935#M958945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can't have, if i use this i will lost some data since my last move time in in format YYYY-MM-DD hh:mi:ss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 12:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TO-CHAR-issues-in-qlikview-script/m-p/1008935#M958945</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-11-02T12:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: TO_CHAR issues in qlikview script</title>
      <link>https://community.qlik.com/t5/QlikView/TO-CHAR-issues-in-qlikview-script/m-p/1008936#M958946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it a char or a date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyway&lt;/P&gt;&lt;P&gt;oracle sysdate is the current date and time&lt;/P&gt;&lt;P&gt;and if you want the date only I think you can use trunc(sysdate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the same for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;LAST_MOVE_DATETIME&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;if it's a date and time you can use the date and time &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;or the date only with trunc(LAST_MOVE_DATETIME)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 12:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TO-CHAR-issues-in-qlikview-script/m-p/1008936#M958946</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-11-02T12:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: TO_CHAR issues in qlikview script</title>
      <link>https://community.qlik.com/t5/QlikView/TO-CHAR-issues-in-qlikview-script/m-p/1008937#M958947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;trunc thing works for me. Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 12:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TO-CHAR-issues-in-qlikview-script/m-p/1008937#M958947</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-11-04T12:37:11Z</dc:date>
    </item>
  </channel>
</rss>

