<?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 when importing through ODBC in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-format-when-importing-through-ODBC/m-p/398240#M1149555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That correct. QlikView will translate all date data into number format. To format into specific date field, you need to use Date() function when you load data or via expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;1. Use in load script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(DateField,'DD-MM-YYYY')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS [MyDate],&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Ex. Date(35370,'DD-MM-YYYY') return 01-11-1996&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use expression&lt;/P&gt;&lt;P&gt;=Date(DateField,'DD-MM-YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 May 2013 06:54:57 GMT</pubDate>
    <dc:creator>Sokkorn</dc:creator>
    <dc:date>2013-05-23T06:54:57Z</dc:date>
    <item>
      <title>Date format when importing through ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-when-importing-through-ODBC/m-p/398238#M1149553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am obtaining data via an ODBC connection from an Oracle database. I am a busiess user and the data is being called in from a view created by our IT department. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am extracting the data in a qvd file and then using it for graphs. Those fields which are date format, Qlikview is not inheriting the format and values are coming unformatted like 35370, 36982, etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way of changing the format of the field in Qlikview. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 06:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-when-importing-through-ODBC/m-p/398238#M1149553</guid>
      <dc:creator />
      <dc:date>2013-05-23T06:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Date format when importing through ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-when-importing-through-ODBC/m-p/398239#M1149554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;changing the format of the field in Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(fieldname)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;date(fieldname,'DD-MM-YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 06:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-when-importing-through-ODBC/m-p/398239#M1149554</guid>
      <dc:creator />
      <dc:date>2013-05-23T06:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date format when importing through ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-when-importing-through-ODBC/m-p/398240#M1149555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That correct. QlikView will translate all date data into number format. To format into specific date field, you need to use Date() function when you load data or via expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;1. Use in load script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(DateField,'DD-MM-YYYY')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS [MyDate],&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Ex. Date(35370,'DD-MM-YYYY') return 01-11-1996&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use expression&lt;/P&gt;&lt;P&gt;=Date(DateField,'DD-MM-YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 06:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-when-importing-through-ODBC/m-p/398240#M1149555</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-05-23T06:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Date format when importing through ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-when-importing-through-ODBC/m-p/398241#M1149556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;Date(Date#(Datefield,'DD-MM-YYYY'),'DD-MM-YYYY') as Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the first format in date# function is your default format and 2nd one format is which you want either same or different like in below syntax&lt;/P&gt;&lt;P&gt;Date(Date#(Datefield,'DD-MM-YYYY'),'DD/MM/YYYY') as Date&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 06:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-when-importing-through-ODBC/m-p/398241#M1149556</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-05-23T06:57:53Z</dc:date>
    </item>
  </channel>
</rss>

