<?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 format conversion when loading the data from SAP HANA in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1655417#M1228150</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if the returned date is in the form of YYYYMMDD, I suggest you use the following line in LOAD Script:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Date(Date#('BUDAT','YYYYMMDD'),'YYYY-MM-DD') as New_Date&lt;/LI-CODE&gt;&lt;P&gt;for example for the date 20191209, I get&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="datt.PNG" style="width: 310px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25165iAE3665AE62F0F74E/image-size/large?v=v2&amp;amp;px=999" role="button" title="datt.PNG" alt="datt.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="datt.PNG" style="width: 120px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25166i29FBFF5C8C8850C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="datt.PNG" alt="datt.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2019 12:52:07 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2019-12-09T12:52:07Z</dc:date>
    <item>
      <title>Date format conversion when loading the data from SAP HANA</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1655406#M1228149</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am loading a date field BUDAT from sap hana in qlikview.&lt;/P&gt;&lt;P&gt;Its actual format is YYYYMMDD.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I change its date format to YYYY-MM-DD?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am taking this field in a select statement like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table_name:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL Select BUDAT from table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if I am doing like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table_name:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL Select to_char(BUDAT, 'YYYY-MM-DD') as BUDAT from table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;then qlikview is taking it as text field.&lt;/P&gt;&lt;P&gt;Kindly suggest something as I need to make changes in this select query.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 21:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1655406#M1228149</guid>
      <dc:creator>Par123</dc:creator>
      <dc:date>2026-01-26T21:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date format conversion when loading the data from SAP HANA</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1655417#M1228150</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if the returned date is in the form of YYYYMMDD, I suggest you use the following line in LOAD Script:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Date(Date#('BUDAT','YYYYMMDD'),'YYYY-MM-DD') as New_Date&lt;/LI-CODE&gt;&lt;P&gt;for example for the date 20191209, I get&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="datt.PNG" style="width: 310px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25165iAE3665AE62F0F74E/image-size/large?v=v2&amp;amp;px=999" role="button" title="datt.PNG" alt="datt.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="datt.PNG" style="width: 120px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25166i29FBFF5C8C8850C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="datt.PNG" alt="datt.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 12:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1655417#M1228150</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-09T12:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date format conversion when loading the data from SAP HANA</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1655446#M1228152</link>
      <description>&lt;P&gt;Hi Taoufiq,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also implemented this but got'328 invalid name of function or procedure: DATE' error.&lt;/P&gt;&lt;P&gt;I want to use this in a sql statement, the solution you suggested working fine in 'load' statement.&lt;/P&gt;&lt;P&gt;something like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table_name:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL select&amp;nbsp;Date(Date#('BUDAT','YYYYMMDD'),'YYYY-MM-DD') as New_Date from table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but its throwing error at date function. Is there any other way to do this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 13:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1655446#M1228152</guid>
      <dc:creator>Par123</dc:creator>
      <dc:date>2019-12-09T13:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date format conversion when loading the data from SAP HANA</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1655455#M1228154</link>
      <description>&lt;P&gt;why not use it in Load instead of SQL ?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 13:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1655455#M1228154</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-09T13:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date format conversion when loading the data from SAP HANA</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1655459#M1228155</link>
      <description>&lt;P&gt;I am having a load statement but some dates from other sql queries are coming in correct format, so if I use the Date(Date#(BUDAT,'YYYYMMDD'),'YYYY-MM-DD') as New_Date in that loas statement then the date formats coming as correct will throw error.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 13:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1655459#M1228155</guid>
      <dc:creator>Par123</dc:creator>
      <dc:date>2019-12-09T13:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date format conversion when loading the data from SAP HANA</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1655465#M1228156</link>
      <description>&lt;P&gt;Ah, ok&lt;/P&gt;&lt;P&gt;And if you use in load:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(SubStringCount(BUDAT, '-') &amp;gt;= 1,BUDAT, Date(Date#(BUDAT,'YYYYMMDD'),'YYYY-MM-DD')) as New_Dat&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 13:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1655465#M1228156</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-09T13:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date format conversion when loading the data from SAP HANA</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1655472#M1228157</link>
      <description>&lt;P&gt;Thanks a lot Taoufiq.&lt;/P&gt;&lt;P&gt;I try that in the load statement and let you know.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 14:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1655472#M1228157</guid>
      <dc:creator>Par123</dc:creator>
      <dc:date>2019-12-09T14:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Date format conversion when loading the data from SAP HANA</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1656438#M1228158</link>
      <description>&lt;P&gt;Hi Taoufiq,&lt;/P&gt;&lt;P&gt;Your approach is working fine.&lt;/P&gt;&lt;P&gt;Thanks a lot for help.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 10:42:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1656438#M1228158</guid>
      <dc:creator>Par123</dc:creator>
      <dc:date>2019-12-11T10:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Date format conversion when loading the data from SAP HANA</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1656439#M1228159</link>
      <description>&lt;P&gt;Awesome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 10:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-conversion-when-loading-the-data-from-SAP-HANA/m-p/1656439#M1228159</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-11T10:44:29Z</dc:date>
    </item>
  </channel>
</rss>

