<?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: Finding difference between date and time. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Finding-difference-between-date-and-time/m-p/1260609#M855418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that neither of the two timestamp fields are interpreted as timestamp by QlikView. You need to use TimeStamp#() function to help QlikView understand your date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TimeStamp(TimeStamp#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PO_CREATION&lt;/SPAN&gt;, 'DD-MMM-YYYY h:mm')) as PO_CREATION,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;TimeStamp(TimeStamp#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PO_FIRST_SUBMISSION&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;, 'DD-MMM-YYYY h:mm')) 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;PO_FIRST_SUBMISSION&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you will have these two dates as date and time field in QlikView and you can use Interval function to do your calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read here for more on this topic:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2017 10:29:02 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-02-13T10:29:02Z</dc:date>
    <item>
      <title>Finding difference between date and time.</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-difference-between-date-and-time/m-p/1260607#M855416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have these two fields with data in the particular format as shown below, I've tried Interval to get the difference between the "PO_CREATION" and "PO_FIRST_SUBMISSION" dates but to no avail. It would be great if somebody can help me out.Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ProcurementCreation.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152881_ProcurementCreation.PNG" style="height: auto;" /&gt;&lt;IMG alt="ProcurementSubmit.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/152891_ProcurementSubmit.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-difference-between-date-and-time/m-p/1260607#M855416</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difference between date and time.</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-difference-between-date-and-time/m-p/1260608#M855417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nicholas !!&lt;/P&gt;&lt;P&gt;That question is not new in all about Database , kind of that Question about "What is better to use Data or Data time" are already bigs forums like Stackoverflow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/29814722/what-is-the-best-data-type-for-date-and-time?noredirect=1&amp;amp;lq=1" title="http://stackoverflow.com/questions/29814722/what-is-the-best-data-type-for-date-and-time?noredirect=1&amp;amp;lq=1"&gt;mysql - What is the best data type for DATE and TIME - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/798121/date-vs-datetime" title="http://stackoverflow.com/questions/798121/date-vs-datetime"&gt;c# - Date vs DateTime - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we listen Oracle "The &lt;SPAN class="bold"&gt;datetime datatypes&lt;/SPAN&gt; are &lt;CODE&gt;DATE&lt;/CODE&gt;, &lt;CODE&gt;TIMESTAMP&lt;/CODE&gt;, &lt;CODE&gt;TIMESTAMP WITH TIME ZONE,&lt;/CODE&gt; and &lt;CODE&gt;TIMESTAMP WITH LOCAL TIME ZONE&lt;/CODE&gt;. Values of datetime datatypes are sometimes called &lt;SPAN class="bold"&gt;datetimes&lt;/SPAN&gt;."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if your qiuestion is , Why i see the same with both different kind of Data Type : The answer should be , casuse they are not at all differente kind of Data Type in fact "Time" is the Extension of&amp;nbsp; Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4 class="sect3"&gt;&lt;EM&gt;TIMESTAMP Datatype&lt;/EM&gt;&lt;/H4&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;EM&gt;The &lt;CODE&gt;TIMESTAMP&lt;/CODE&gt; datatype is an extension of the &lt;CODE&gt;DATE&lt;/CODE&gt; datatype. It stores year, month, day, hour, minute, and second values. It also stores fractional seconds, which are not stored by the &lt;CODE&gt;DATE&lt;/CODE&gt; datatype.&lt;/EM&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So time allow you more precision, but bassically if you want to store DD/MM/YYYY HH:MM you can do in both format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 09:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-difference-between-date-and-time/m-p/1260608#M855417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-13T09:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difference between date and time.</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-difference-between-date-and-time/m-p/1260609#M855418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that neither of the two timestamp fields are interpreted as timestamp by QlikView. You need to use TimeStamp#() function to help QlikView understand your date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TimeStamp(TimeStamp#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PO_CREATION&lt;/SPAN&gt;, 'DD-MMM-YYYY h:mm')) as PO_CREATION,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;TimeStamp(TimeStamp#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PO_FIRST_SUBMISSION&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;, 'DD-MMM-YYYY h:mm')) 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;PO_FIRST_SUBMISSION&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you will have these two dates as date and time field in QlikView and you can use Interval function to do your calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read here for more on this topic:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 10:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-difference-between-date-and-time/m-p/1260609#M855418</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-13T10:29:02Z</dc:date>
    </item>
  </channel>
</rss>

