<?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 Loading date fields from string values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-date-fields-from-string-values/m-p/1082705#M636530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a question on formating while loading date fields from a source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mij date fields has the format "2016-04-07T17:41:01Z"&lt;/P&gt;&lt;P&gt;For this date to be imported as a date field I use 2 replace functions to get rid of the T and Z sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the next step I use Date#( to convert it to a datefield and with Date( I format it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This looks like this and works&lt;/P&gt;&lt;P&gt;Date(Date#(Replace(Replace(DATEFIELD,&amp;nbsp; 'T',' '),'Z',''), 'YYYY-MM-DD hh:mm:ss'), 'DD-MM-YYYY')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as DATEFIELD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question;&amp;nbsp; has anyone a sollution to make this statement simpler / more elegant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roland Raijmakers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Apr 2016 15:44:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-08T15:44:06Z</dc:date>
    <item>
      <title>Loading date fields from string values</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-date-fields-from-string-values/m-p/1082705#M636530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a question on formating while loading date fields from a source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mij date fields has the format "2016-04-07T17:41:01Z"&lt;/P&gt;&lt;P&gt;For this date to be imported as a date field I use 2 replace functions to get rid of the T and Z sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the next step I use Date#( to convert it to a datefield and with Date( I format it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This looks like this and works&lt;/P&gt;&lt;P&gt;Date(Date#(Replace(Replace(DATEFIELD,&amp;nbsp; 'T',' '),'Z',''), 'YYYY-MM-DD hh:mm:ss'), 'DD-MM-YYYY')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as DATEFIELD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question;&amp;nbsp; has anyone a sollution to make this statement simpler / more elegant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roland Raijmakers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-date-fields-from-string-values/m-p/1082705#M636530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-08T15:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Loading date fields from string values</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-date-fields-from-string-values/m-p/1082706#M636531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried this may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Date#(Left(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;DATEFIELD, 10), 'YYYY-MM-DD'), 'DD-MM-YYYY') as &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;DATEFIELD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 16:48:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-date-fields-from-string-values/m-p/1082706#M636531</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-08T16:48:14Z</dc:date>
    </item>
  </channel>
</rss>

