<?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: Get exact hours between dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-exact-hours-between-dates/m-p/1568313#M596446</link>
    <description>&lt;P&gt;Quite simple and working perfectly.&lt;/P&gt;&lt;P&gt;Sir, you are my saviour.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2019 16:05:10 GMT</pubDate>
    <dc:creator>sgonzalez_adaso</dc:creator>
    <dc:date>2019-04-11T16:05:10Z</dc:date>
    <item>
      <title>Get exact hours between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-exact-hours-between-dates/m-p/1568042#M596440</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm doing an incremental reload in my document.&lt;BR /&gt;For that reason, the filter dates I use are not always exact, but I need to get for the SQL script that I throw the exact time like "YYYY/MM/DD HH:00:00"&lt;/P&gt;&lt;P&gt;Example: I make my reload at 2019/04/11 09:43:26 and I want to use the date 2019/04/11 09:00:00.&lt;/P&gt;&lt;P&gt;I am trying to use the function ROUND like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Timestamp (round (Time, (1/24))) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but I can not match it with the date. (Format YYYY/MM/DD HH:00:00)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-exact-hours-between-dates/m-p/1568042#M596440</guid>
      <dc:creator>sgonzalez_adaso</dc:creator>
      <dc:date>2024-11-16T21:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get exact hours between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-exact-hours-between-dates/m-p/1568049#M596441</link>
      <description>Simply use TimeStamp()&lt;BR /&gt;TimeStamp('YourDateField','M/DD/YYYY hh:00:00')</description>
      <pubDate>Thu, 11 Apr 2019 09:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-exact-hours-between-dates/m-p/1568049#M596441</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2019-04-11T09:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get exact hours between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-exact-hours-between-dates/m-p/1568148#M596442</link>
      <description>&lt;P&gt;It isn't working as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, I&amp;nbsp; have two timestampts on format "YYYY-MM-DD HHmm:ss".&lt;/P&gt;&lt;P&gt;Lets say they are called StartDateTime and EndDateTime.&lt;/P&gt;&lt;P&gt;So I create two variables to transform and use that dates for my query to SQL.&lt;/P&gt;&lt;P&gt;LET v.HourStartDatetime = NULL();&lt;/P&gt;&lt;P&gt;LET v.HourEndDatetime = NULL();&lt;/P&gt;&lt;P&gt;v.HourStartDatetime = Date(timestamp#(v.HourStartDatetime, 'YYYY-MM-dd HH:00:00'));&lt;/P&gt;&lt;P&gt;v.HourEndDatetime = Date(timestamp#(v.HourEndDatetime, 'YYYY-MM-dd HH:00:00'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using this approatch the timestamp I get is empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 11:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-exact-hours-between-dates/m-p/1568148#M596442</guid>
      <dc:creator>sgonzalez_adaso</dc:creator>
      <dc:date>2019-04-11T11:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get exact hours between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-exact-hours-between-dates/m-p/1568282#M596443</link>
      <description>what is your actual script.&lt;BR /&gt;As per logic you posted it will give null</description>
      <pubDate>Thu, 11 Apr 2019 15:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-exact-hours-between-dates/m-p/1568282#M596443</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2019-04-11T15:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get exact hours between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-exact-hours-between-dates/m-p/1568285#M596444</link>
      <description>&lt;P&gt;I make a mistake on the copy/paste, my fault.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LET v.HourStartDatetime = NULL();&lt;/P&gt;&lt;P&gt;LET v.HourEndDatetime = NULL();&lt;/P&gt;&lt;P&gt;v.HourStartDatetime = Date(timestamp#('2018-11-27 19:42:25', 'YYYY-MM-dd HH:00:00'));&lt;/P&gt;&lt;P&gt;v.HourEndDatetime = Date(timestamp#('2019-01-02 19:42:25' 'YYYY-MM-dd HH:00:00'));&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 15:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-exact-hours-between-dates/m-p/1568285#M596444</guid>
      <dc:creator>sgonzalez_adaso</dc:creator>
      <dc:date>2019-04-11T15:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get exact hours between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-exact-hours-between-dates/m-p/1568286#M596445</link>
      <description>LET v.HourStartDatetime = Timestamp(timestamp#('2018-11-27 19:42:25','YYYY-MM-DD hh:mm:ss'),'YYYY-MM-DD hh:00:00');&lt;BR /&gt;LET v.HourEndDatetime = Timestamp(timestamp#('2019-01-02 19:42:25' 'YYYY-MM-DD hh:mm:ss'),'YYYY-MM-DD hh:00:00');&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Apr 2019 15:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-exact-hours-between-dates/m-p/1568286#M596445</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2019-04-11T15:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get exact hours between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-exact-hours-between-dates/m-p/1568313#M596446</link>
      <description>&lt;P&gt;Quite simple and working perfectly.&lt;/P&gt;&lt;P&gt;Sir, you are my saviour.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 16:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-exact-hours-between-dates/m-p/1568313#M596446</guid>
      <dc:creator>sgonzalez_adaso</dc:creator>
      <dc:date>2019-04-11T16:05:10Z</dc:date>
    </item>
  </channel>
</rss>

