<?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: Problem parsing datetime in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-parsing-datetime/m-p/468908#M488740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's not working with the Timestamp#() approach? Seems fine on my end, at least with the example timestamps you provided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2012 02:07:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-11-27T02:07:05Z</dc:date>
    <item>
      <title>Problem parsing datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-parsing-datetime/m-p/468907#M488739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having a real problem with date/time field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to calculate the difference (in minutes) between two times.&amp;nbsp; When I load the data into Qlikview, it seems to be recognised only as text.&amp;nbsp; The datetimes come from a text file and are stored in the following format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="127" style="width: 141px; height: 131px;" width="139"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="98"&gt;1/2/2012 21:38:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;1/3/2012 7:59:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;1/3/2012 8:20:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;1/3/2012 8:22:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I look at the document properties -&amp;gt; tables tab, I can see that the field is tagged as $ascii, $text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13539815658121741" jivemacro_uid="_13539815658121741"&gt;&lt;P&gt;SubField(CHECKIN, ' ', 2) AS CHECKIN_TIME,&lt;/P&gt;&lt;P&gt;SubField(CHECKIN, ' ', 1) AS CHECKIN_DATE&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This results in the field being recognised as time and date respectively.&amp;nbsp; I can then calculate the difference timewise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that some start finish combinations go past midnight and into the next day.&amp;nbsp; Subtracting without the date included results in negative figures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried loading using Timestamp#(CHECKIN, 'D/M/YYYY hh:mm:ss'), but that doesn't seem to work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure there's something I'm missing....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 02:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-parsing-datetime/m-p/468907#M488739</guid>
      <dc:creator />
      <dc:date>2012-11-27T02:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem parsing datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-parsing-datetime/m-p/468908#M488740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's not working with the Timestamp#() approach? Seems fine on my end, at least with the example timestamps you provided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 02:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-parsing-datetime/m-p/468908#M488740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-27T02:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem parsing datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-parsing-datetime/m-p/468909#M488741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are quite right!&amp;nbsp; I can now get it working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 02:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-parsing-datetime/m-p/468909#M488741</guid>
      <dc:creator />
      <dc:date>2012-11-27T02:21:57Z</dc:date>
    </item>
  </channel>
</rss>

