<?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: Importing data from MySQL server, date format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Importing-data-from-MySQL-server-date-format/m-p/692779#M1056989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for the quick replies, will try these out. Quite new to QlikView and SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Oct 2014 13:49:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-24T13:49:49Z</dc:date>
    <item>
      <title>Importing data from MySQL server, date format</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-data-from-MySQL-server-date-format/m-p/692775#M1056985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I've a .csv file with a date column, in the format 01/01/1900. By using the following: &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;DATE(DATE, 'DD-MMM-YY') AS DMY, &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;it turned it into the format 01-Jan-00, which is what I want, it worked just fine. Now I'm importing the exact same data from a MySQL server instead of reading from a .csv, and the above line of code now returns an error. It says the syntax is wrong, something about the version of MySQL. Is there some different syntax that needs to be used when importing data from MySQL? I tried DATE_FORMAT(DATE, %...) but that just gave me errors too.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 13:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-data-from-MySQL-server-date-format/m-p/692775#M1056985</guid>
      <dc:creator />
      <dc:date>2014-10-24T13:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data from MySQL server, date format</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-data-from-MySQL-server-date-format/m-p/692776#M1056986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try explicitly casting or converting the value of the date field as part of the SQL statement.&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; color: #3d3d3d;"&gt;DATE(DATE, 'DD-MMM-YY') AS DMY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL Select&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;cast(DATE as Date) as DATE,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;from table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 13:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-data-from-MySQL-server-date-format/m-p/692776#M1056986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-24T13:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data from MySQL server, date format</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-data-from-MySQL-server-date-format/m-p/692777#M1056987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MakeDate(right(DATE,4),mid(DATE,4,2),left(DATE,2))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 13:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-data-from-MySQL-server-date-format/m-p/692777#M1056987</guid>
      <dc:creator />
      <dc:date>2014-10-24T13:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data from MySQL server, date format</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-data-from-MySQL-server-date-format/m-p/692778#M1056988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The function to convert dates that are held as text to a true date in QlikView is Date#&lt;/P&gt;&lt;P&gt;date(date#(date_string, date_format))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&amp;nbsp; date(date#('17-25-14', 'MM-DD-YY)) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 13:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-data-from-MySQL-server-date-format/m-p/692778#M1056988</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-10-24T13:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data from MySQL server, date format</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-data-from-MySQL-server-date-format/m-p/692779#M1056989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for the quick replies, will try these out. Quite new to QlikView and SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 13:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-data-from-MySQL-server-date-format/m-p/692779#M1056989</guid>
      <dc:creator />
      <dc:date>2014-10-24T13:49:49Z</dc:date>
    </item>
  </channel>
</rss>

