<?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: TimeStamp Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/TimeStamp-Function/m-p/259116#M584741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the chunk of code &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;TIMESTAMPDIFF(4, char(TIMESTAMP(( (CASE WHEN(1-1=0) THEN (TIMESTAMP(current date, current time)) ELSE &lt;P&gt;("HistoryTable".START_TIME) END) ))-TIMESTAMP(( "HistoryTable".END_TIME ))))&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;is basically trying to calculate the difference in dates "HistoryTable".START_TIME and "HistoryTable".END_TIME.&lt;/P&gt;&lt;P&gt;You can use &lt;/P&gt;&lt;P&gt;Load&amp;nbsp; ("HistoryTable".END_TIME - HistoryTable".START_TIME ) as DiffDays from table..&lt;/P&gt;&lt;P&gt;in qlikview, but needs to take care of the system date fromat and date format of the data in the table.&lt;/P&gt;&lt;P&gt;As you know when you load date in Qlikview it will interpret the date in the local system date fromat that you can see in the first tab of the script.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2011 09:21:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-14T09:21:51Z</dc:date>
    <item>
      <title>TimeStamp Function</title>
      <link>https://community.qlik.com/t5/QlikView/TimeStamp-Function/m-p/259115#M584740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please help me in converting following below BO query into Qlikview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIMESTAMPDIFF(4, char(TIMESTAMP(( (CASE WHEN(1-1=0) THEN (TIMESTAMP(current date, current time)) ELSE &lt;/P&gt;&lt;P&gt;("HistoryTable".START_TIME) END) ))-TIMESTAMP(( "HistoryTable".END_TIME ))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 03:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TimeStamp-Function/m-p/259115#M584740</guid>
      <dc:creator />
      <dc:date>2011-09-14T03:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: TimeStamp Function</title>
      <link>https://community.qlik.com/t5/QlikView/TimeStamp-Function/m-p/259116#M584741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the chunk of code &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;TIMESTAMPDIFF(4, char(TIMESTAMP(( (CASE WHEN(1-1=0) THEN (TIMESTAMP(current date, current time)) ELSE &lt;P&gt;("HistoryTable".START_TIME) END) ))-TIMESTAMP(( "HistoryTable".END_TIME ))))&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;is basically trying to calculate the difference in dates "HistoryTable".START_TIME and "HistoryTable".END_TIME.&lt;/P&gt;&lt;P&gt;You can use &lt;/P&gt;&lt;P&gt;Load&amp;nbsp; ("HistoryTable".END_TIME - HistoryTable".START_TIME ) as DiffDays from table..&lt;/P&gt;&lt;P&gt;in qlikview, but needs to take care of the system date fromat and date format of the data in the table.&lt;/P&gt;&lt;P&gt;As you know when you load date in Qlikview it will interpret the date in the local system date fromat that you can see in the first tab of the script.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 09:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TimeStamp-Function/m-p/259116#M584741</guid>
      <dc:creator />
      <dc:date>2011-09-14T09:21:51Z</dc:date>
    </item>
  </channel>
</rss>

