<?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 Add hour on to a Date? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235008#M86305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;You can create a variable representing 1 hour (ie. 1/24): set v1hour = .04167. This variable can then be used in the load script or as a formula.&lt;/P&gt;&lt;P&gt;For example, to create a field in the load script representing the current timestamp plus one hour:&lt;/P&gt;&lt;P&gt;timestamp(now() + $(v1hour)) as Curr_TS_Plus_1hour&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Oct 2010 13:11:23 GMT</pubDate>
    <dc:creator>john_duffy</dc:creator>
    <dc:date>2010-10-12T13:11:23Z</dc:date>
    <item>
      <title>Add hour on to a Date?</title>
      <link>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235007#M86304</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;BR /&gt;What is the best way to add 1 hour to a date, both by script and formula ?&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;Current Date&lt;/P&gt;&lt;P&gt;12/10/2010 11:57:31&lt;/P&gt;&lt;P&gt;New Date&lt;/P&gt;&lt;P&gt;12/10/2010 12:57:31&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 11:58:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235007#M86304</guid>
      <dc:creator>denwo2010</dc:creator>
      <dc:date>2010-10-12T11:58:58Z</dc:date>
    </item>
    <item>
      <title>Add hour on to a Date?</title>
      <link>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235008#M86305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;You can create a variable representing 1 hour (ie. 1/24): set v1hour = .04167. This variable can then be used in the load script or as a formula.&lt;/P&gt;&lt;P&gt;For example, to create a field in the load script representing the current timestamp plus one hour:&lt;/P&gt;&lt;P&gt;timestamp(now() + $(v1hour)) as Curr_TS_Plus_1hour&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 13:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235008#M86305</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2010-10-12T13:11:23Z</dc:date>
    </item>
    <item>
      <title>Add hour on to a Date?</title>
      <link>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235009#M86306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I mean to say minus an hour,&lt;/P&gt;&lt;P&gt;Current Date&lt;/P&gt;&lt;P&gt;12/10/2010 11:57:31&lt;/P&gt;&lt;P&gt;New Date&lt;/P&gt;&lt;P&gt;12/10/2010 10:57:31&lt;/P&gt;&lt;P&gt;I tried what you said timestamp(now() - $(v1hour)) as Curr_TS_Plus_1hour but was not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 15:36:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235009#M86306</guid>
      <dc:creator>denwo2010</dc:creator>
      <dc:date>2010-10-12T15:36:04Z</dc:date>
    </item>
    <item>
      <title>Add hour on to a Date?</title>
      <link>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235010#M86307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;It should work. See the attached application. For greater precision I set v1hour to .04166667.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 16:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235010#M86307</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2010-10-12T16:07:12Z</dc:date>
    </item>
    <item>
      <title>Add hour on to a Date?</title>
      <link>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235011#M86308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;I have added your script but for me I have a date of 04/10/2010 11:41:00 but it is returning as 04/10/2010 10:10:00 where it should be 04/10/2010 10:41:00&lt;/P&gt;&lt;P&gt;Is there anyway you can hardcode the above date (04/10/2010 11:41:00) and see what results you are getting now?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 16:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235011#M86308</guid>
      <dc:creator>ivandrago</dc:creator>
      <dc:date>2010-10-12T16:46:48Z</dc:date>
    </item>
    <item>
      <title>Add hour on to a Date?</title>
      <link>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235012#M86309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, and something like this??&lt;/P&gt;&lt;P&gt;timestamp(yourfield - maketime(1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 17:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235012#M86309</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2010-10-12T17:05:55Z</dc:date>
    </item>
    <item>
      <title>Add hour on to a Date?</title>
      <link>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235013#M86310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan.&lt;/P&gt;&lt;P&gt;Can you please attach a sample application demonstrating the issue. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 17:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235013#M86310</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2010-10-12T17:23:40Z</dc:date>
    </item>
    <item>
      <title>Add hour on to a Date?</title>
      <link>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235014#M86311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This now works Hector! Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 17:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-hour-on-to-a-Date/m-p/235014#M86311</guid>
      <dc:creator>denwo2010</dc:creator>
      <dc:date>2010-10-12T17:27:19Z</dc:date>
    </item>
  </channel>
</rss>

