<?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 Date format from date field of xml file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-format-from-date-field-of-xml-file/m-p/142160#M21711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the QV Date#() function to read it and convert correctly.&lt;/P&gt;&lt;P&gt;date(date#(rawDate, 'YYYYMMDD')) as aDate&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Month(date#(rawDate, 'YYYYMMDD')) as Month&lt;/P&gt;&lt;P&gt;For a working example, see the QV Cookbook sample "Reading non-standard dates". You can download the QV Cookbook from:&lt;BR /&gt;&lt;A href="http://robwunderlich.com/Download.html"&gt;http://robwunderlich.com/Download.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2009 03:39:01 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2009-04-23T03:39:01Z</dc:date>
    <item>
      <title>Date format from date field of xml file</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-from-date-field-of-xml-file/m-p/142158#M21709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting a field name date with data like 20080501 (yearmonthdate) from xml file; how to convert it into date format so i can use month(xxxxx) as Month, Year(xxxx) as Year in script while loading. Thanks for the answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 02:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-from-date-field-of-xml-file/m-p/142158#M21709</guid>
      <dc:creator />
      <dc:date>2009-04-23T02:35:36Z</dc:date>
    </item>
    <item>
      <title>Date format from date field of xml file</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-from-date-field-of-xml-file/m-p/142159#M21710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT to_date(field_name, 'YYYYMMDD') As NormalDate&lt;/P&gt;&lt;P&gt;Would work in Oracle. At the very least, you could break it up into substrings and use whatever string to date function is available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 03:14:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-from-date-field-of-xml-file/m-p/142159#M21710</guid>
      <dc:creator />
      <dc:date>2009-04-23T03:14:46Z</dc:date>
    </item>
    <item>
      <title>Date format from date field of xml file</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-from-date-field-of-xml-file/m-p/142160#M21711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the QV Date#() function to read it and convert correctly.&lt;/P&gt;&lt;P&gt;date(date#(rawDate, 'YYYYMMDD')) as aDate&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Month(date#(rawDate, 'YYYYMMDD')) as Month&lt;/P&gt;&lt;P&gt;For a working example, see the QV Cookbook sample "Reading non-standard dates". You can download the QV Cookbook from:&lt;BR /&gt;&lt;A href="http://robwunderlich.com/Download.html"&gt;http://robwunderlich.com/Download.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 03:39:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-from-date-field-of-xml-file/m-p/142160#M21711</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-04-23T03:39:01Z</dc:date>
    </item>
    <item>
      <title>Date format from date field of xml file</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-from-date-field-of-xml-file/m-p/142161#M21712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could also parse the data if it is consistent and make it into a date.&lt;/P&gt;&lt;P&gt;makedate(left(datevalue,4),mid(datevalue,5,2),right(datevalue,2)) as dateconverted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 03:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-from-date-field-of-xml-file/m-p/142161#M21712</guid>
      <dc:creator />
      <dc:date>2009-04-23T03:54:18Z</dc:date>
    </item>
    <item>
      <title>Date format from date field of xml file</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-from-date-field-of-xml-file/m-p/142162#M21713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MONTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(date([fieldname],'YYYYMMDD')) &lt;B&gt;as&lt;/B&gt; Month &lt;P&gt;and left(fieldname,4) as Year&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 03:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-from-date-field-of-xml-file/m-p/142162#M21713</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2009-04-23T03:56:53Z</dc:date>
    </item>
    <item>
      <title>Date format from date field of xml file</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-from-date-field-of-xml-file/m-p/142163#M21714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used to use the "makedate" formula, like Marc suggested, but at some point it suddenly stopped working in one of my applications. Since then, I switched to date#() function that Rob suggested - of all the replies above, that's probably the best suggestion.&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 05:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-from-date-field-of-xml-file/m-p/142163#M21714</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-04-23T05:08:01Z</dc:date>
    </item>
  </channel>
</rss>

