<?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: Find hours between dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-hours-between-dates/m-p/1239245#M393760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I used somenthing like this and worked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(Timestamp(Now(), 'DD/MM/YYYY hh:mm:ss') - Timestamp([Creation Date], 'DD/MM/YYYY hh:mm:ss')) * 24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Mar 2017 21:52:02 GMT</pubDate>
    <dc:creator>hector_munoz</dc:creator>
    <dc:date>2017-03-06T21:52:02Z</dc:date>
    <item>
      <title>Find hours between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-hours-between-dates/m-p/1239243#M393758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble trying to find the amount of hours,positive or negative, between my date field and today's date.&amp;nbsp; I've looked on other discussions and can't seem to find the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the formula in my script.&amp;nbsp; It is returning null values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interval(timestamp(now(),'M/D/YYYY hh:mm')-timestamp(Date1,'M/D/YYYY hh:mm')) as Interval,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another function that I should be using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 21:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-hours-between-dates/m-p/1239243#M393758</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-06T21:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Find hours between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-hours-between-dates/m-p/1239244#M393759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to format your timestamps using Timestamp(), but that should not be the issue here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensure that Date1 is read in correctly, interpreted as timestamp by QlikView:&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;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3102"&gt;QlikView Date fields&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 21:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-hours-between-dates/m-p/1239244#M393759</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-03-06T21:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Find hours between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-hours-between-dates/m-p/1239245#M393760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I used somenthing like this and worked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(Timestamp(Now(), 'DD/MM/YYYY hh:mm:ss') - Timestamp([Creation Date], 'DD/MM/YYYY hh:mm:ss')) * 24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 21:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-hours-between-dates/m-p/1239245#M393760</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2017-03-06T21:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Find hours between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-hours-between-dates/m-p/1239246#M393761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the date being formatted in the script to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;M/D/YYYY hh:mm and it's being read as such when I pull the field into a listbox&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Timestamp#(Date1,'M/D/YYYY hh:mm:ss') as Date1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 21:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-hours-between-dates/m-p/1239246#M393761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-06T21:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Find hours between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-hours-between-dates/m-p/1239247#M393762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked that Date1 shows a numeric representation (can be formatted as number)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then this should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Interval( now()-&lt;STRONG&gt;timestamp#&lt;/STRONG&gt;(Date1,'M/D/YYYY hh:mm') ) as Interval,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;or if your input value shows seconds as well:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Interval( now()-&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;timestamp#&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;(Date1,'M/D/YYYY hh:mm:ss') ) as Interval,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 22:07:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-hours-between-dates/m-p/1239247#M393762</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-03-06T22:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Find hours between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-hours-between-dates/m-p/1239248#M393763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works, thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 16:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-hours-between-dates/m-p/1239248#M393763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-07T16:14:00Z</dc:date>
    </item>
  </channel>
</rss>

