<?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 Convert string to Date or Timestamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190787#M53148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never tried, but this format looks a bit unusual so that there might be some internal logic within the QV-formulae standing against it.&lt;BR /&gt;Have you tried to load it as string, then fillet it for each piece and compose a new date?&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2009 23:49:43 GMT</pubDate>
    <dc:creator>prieper</dc:creator>
    <dc:date>2009-09-17T23:49:43Z</dc:date>
    <item>
      <title>Convert string to Date or Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190785#M53146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to load a timestamp with this format 'MMM DD hh:mm:ss YYYY' from XML files. I tried a lot of things but cannot make it with the timestamp# or date# functions. What is the most simple way to do this? Why this is a problem?&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 23:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190785#M53146</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-09-17T23:43:07Z</dc:date>
    </item>
    <item>
      <title>Convert string to Date or Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190786#M53147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any chance you can post an XML sample file here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 23:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190786#M53147</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-09-17T23:45:19Z</dc:date>
    </item>
    <item>
      <title>Convert string to Date or Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190787#M53148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never tried, but this format looks a bit unusual so that there might be some internal logic within the QV-formulae standing against it.&lt;BR /&gt;Have you tried to load it as string, then fillet it for each piece and compose a new date?&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 23:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190787#M53148</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-09-17T23:49:43Z</dc:date>
    </item>
    <item>
      <title>Convert string to Date or Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190788#M53149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to read in similar values from a txt file, there e.g. a&lt;/P&gt;&lt;P&gt;date(timestamp#(Timestamp,'MMM DD hh:mm:ss YYYY'),'YYYY.MM.DD hh:mm:ss')&lt;/P&gt;&lt;P&gt;is no problem and the field is correctly evaluated as timestamp.&lt;/P&gt;&lt;P&gt;Should it really be something XML-specific?&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 23:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190788#M53149</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-09-17T23:59:29Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Convert string to Date or Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190789#M53150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is nothing XML specific. I found out that is has to do with some string operations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;test_xml:&lt;BR /&gt;LOAD created_at&lt;BR /&gt;, timestamp#(mid(replace(created_at,'+0000 ',''),4),'MMM DD hh:mm:ss YYYY') as badTimestamp&lt;BR /&gt;FROM C:\Projekte\Qliktech\#bugs\timeline.xml (XmlSimple, Table is [statuses/status]);&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The original format is even more unusual (twitter!): 'Wed Sep 16 16:57:36 +0000 2009'&lt;/P&gt;&lt;P&gt;It will work if I adjust the date in the file to the format 'Sep 16 16:57:36 2009' and strip the string operation in the script. But this is no solution.&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 00:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190789#M53150</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-09-18T00:32:59Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Convert string to Date or Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190790#M53151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not? I do not get the point of your complaint?&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 04:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190790#M53151</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-09-18T04:21:39Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Convert string to Date or Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190791#M53152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ralf,&lt;/P&gt;&lt;P&gt;This seems to work. I had to add a trim() around the parsed date to get it through.&lt;/P&gt;&lt;P&gt;date#(trim(mid(created_at,4)),'MMM DD hh:mm:ss +0000 YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 09:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190791#M53152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-18T09:22:54Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: Convert string to Date or Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190792#M53153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a solution but better is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;timestamp#(mid(created_at, &lt;B&gt;5&lt;/B&gt;),'MMM DD hh:mm:ss +0000 YYYY')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This was my fault, but I wonder why there is no wildcard format sign?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 23:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-string-to-Date-or-Timestamp/m-p/190792#M53153</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-09-21T23:19:02Z</dc:date>
    </item>
  </channel>
</rss>

