<?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 To_Date from a Timestamp field.... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293024#M1201969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get that error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: S1000, ErrorCode: 936, ErrorMsg: [Oracle][ODBC][Ora]ORA-00936: missing expression&lt;BR /&gt;&lt;BR /&gt;SQL SELECT SSERVER, timestamp(DTDATE, ,'YYYY-MM-DD hh:mm:ss.fff')&lt;BR /&gt;from TABLE1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Dec 2010 16:26:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-14T16:26:22Z</dc:date>
    <item>
      <title>To_Date from a Timestamp field....</title>
      <link>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293019#M1201964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried to use that query but it seems that it doesn't accept the TIMESTAMP format of date field:&lt;/P&gt;&lt;P&gt;LOAD HOST, DATE_C;&lt;BR /&gt;SQL SELECT HOST, TO_DATE(DATE_C,'AAAA-MM-DD hh:mm:ss.fff')&lt;BR /&gt;from TABLE1;&lt;/P&gt;&lt;P&gt;Ans this is the error: SQL##f - SqlState: S1000, ErrorCode: 1821, ErrorMsg: [Oracle][ODBC][Ora]ORA-01821: date format not recognized&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANy ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 10:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293019#M1201964</guid>
      <dc:creator />
      <dc:date>2010-12-07T10:56:21Z</dc:date>
    </item>
    <item>
      <title>To_Date from a Timestamp field....</title>
      <link>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293020#M1201965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlikview-tester,&lt;/P&gt;&lt;P&gt;if you can't get rid of the sql-error try an "select field_list from..." and do the formatting within the load statement of QV. So you do not need to struggle with sql and you are testing a bit more of QV.&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 11:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293020#M1201965</guid>
      <dc:creator />
      <dc:date>2010-12-07T11:05:57Z</dc:date>
    </item>
    <item>
      <title>To_Date from a Timestamp field....</title>
      <link>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293021#M1201966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i'm not an expert in oracle, but AAAA means the year with 4 digits?? isn't the standard format for this value YYYY??&lt;/P&gt;&lt;P&gt;Also, in qlikview you can do the same function with &lt;B&gt;timestamp(FIELD, ,'YYYY-MM-DD hh:mm:ss.fff'')&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 13:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293021#M1201966</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2010-12-07T13:08:31Z</dc:date>
    </item>
    <item>
      <title>To_Date from a Timestamp field....</title>
      <link>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293022#M1201967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;doing the query without formating doesn't work.&lt;/P&gt;&lt;P&gt;Qlikview gets all the previous fields before the TIMESTAMP one. At that point, it finishes the query witout any extra info....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's the reason I tried to get it and reformat at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 11:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293022#M1201967</guid>
      <dc:creator />
      <dc:date>2010-12-10T11:56:16Z</dc:date>
    </item>
    <item>
      <title>To_Date from a Timestamp field....</title>
      <link>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293023#M1201968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, then you have to find the correct format. I assume you found it meanwhile. If not, I think Hector is right: a 'AAAA' does not exist as a valid date format in oracle. Use 'YYYY' instead. For Details take a glance at http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements004.htm#i34924&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2010 13:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293023#M1201968</guid>
      <dc:creator />
      <dc:date>2010-12-11T13:40:16Z</dc:date>
    </item>
    <item>
      <title>To_Date from a Timestamp field....</title>
      <link>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293024#M1201969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get that error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: S1000, ErrorCode: 936, ErrorMsg: [Oracle][ODBC][Ora]ORA-00936: missing expression&lt;BR /&gt;&lt;BR /&gt;SQL SELECT SSERVER, timestamp(DTDATE, ,'YYYY-MM-DD hh:mm:ss.fff')&lt;BR /&gt;from TABLE1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 16:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293024#M1201969</guid>
      <dc:creator />
      <dc:date>2010-12-14T16:26:22Z</dc:date>
    </item>
    <item>
      <title>To_Date from a Timestamp field....</title>
      <link>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293025#M1201970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this&lt;/P&gt;&lt;P&gt;SQL SELECT SSERVER, to_char(DTDATE, ,'YYYY-MM-DD hh:mm:ss.fff')&lt;BR /&gt;from TABLE1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 16:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293025#M1201970</guid>
      <dc:creator />
      <dc:date>2010-12-14T16:30:42Z</dc:date>
    </item>
    <item>
      <title>To_Date from a Timestamp field....</title>
      <link>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293026#M1201971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again, can you try this code??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;QV_TABLE:&lt;BR /&gt;LOAD HOST, DATE_C_DATEFORMAT;&lt;BR /&gt;SQL SELECT HOST, TO_DATE(DATE_C,'YYYY-MM-DD') as DATE_C_DATEFORMAT&lt;BR /&gt;from TABLE1;&lt;BR /&gt;OR&lt;BR /&gt;&lt;BR /&gt;QV_TABLE2:&lt;BR /&gt;LOAD HOST, DATE_C_DATEFORMAT;&lt;BR /&gt;SQL SELECT HOST, TO_DATE(DATE_C) as DATE_C_DATEFORMAT&lt;BR /&gt;from TABLE1;&lt;BR /&gt;OR&lt;BR /&gt;&lt;BR /&gt;LOAD HOST, date(DATE_C,'YYYY-MM-DD');&lt;BR /&gt;SQL SELECT HOST, DATE_C&lt;BR /&gt;from TABLE1;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 16:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-Date-from-a-Timestamp-field/m-p/293026#M1201971</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2010-12-14T16:41:20Z</dc:date>
    </item>
  </channel>
</rss>

