<?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 Adding or substacting hours from timestamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129093#M371311</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 a date with timestamp, where i need to show that -3 hours from actual date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with different date functions but we can able to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: 07/10/2016 01:00:00 000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output should be 07/09/2016 22:00:00 000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jul 2016 09:27:23 GMT</pubDate>
    <dc:creator>sridhar_sigired</dc:creator>
    <dc:date>2016-07-11T09:27:23Z</dc:date>
    <item>
      <title>Adding or substacting hours from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129093#M371311</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 a date with timestamp, where i need to show that -3 hours from actual date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with different date functions but we can able to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: 07/10/2016 01:00:00 000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output should be 07/09/2016 22:00:00 000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 09:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129093#M371311</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2016-07-11T09:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or substacting hours from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129094#M371312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;= date ( date#('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt; 07/10/2016 01:00:00 000&lt;/SPAN&gt;' , 'DD/MM/YYYY hh:mm:ss') , 'DD/MM/YYYY hh:mm:ss')&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;&amp;amp; chr(10) &amp;amp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;date ( date ( date#('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt; 07/10/2016 01:00:00 000&lt;/SPAN&gt;' , 'DD/MM/YYYY hh:mm:ss') , 'DD/MM/YYYY hh:mm:ss') &lt;SPAN style="color: #ff0000;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; color: #993300;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;(-180/24/6&lt;/SPAN&gt;0)&lt;/STRONG&gt;&lt;/SPAN&gt; , 'DD/MM/YYYY hh:mm:ss')&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;edited&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 09:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129094#M371312</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-07-11T09:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or substacting hours from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129095#M371313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or else&amp;nbsp; try below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Timestamp#(YourFieldName, 'YYYY-MM-DD hh:mm:ss') AS OldTime,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Timestamp(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;YourFieldName&lt;/SPAN&gt;+Time#(-3,'hh')) as NewTime&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 09:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129095#M371313</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-07-11T09:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or substacting hours from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129096#M371314</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;This seems to work:&lt;/P&gt;&lt;P&gt;Timestamp([Date_Time]-(3/24)) as Timestamp_substracted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 09:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129096#M371314</guid>
      <dc:creator>fneumann</dc:creator>
      <dc:date>2016-07-11T09:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or substacting hours from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129097#M371315</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 am receiving blank information when i copied this in text box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 09:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129097#M371315</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2016-07-11T09:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or substacting hours from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129098#M371316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still not getting result &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 09:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129098#M371316</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2016-07-11T09:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or substacting hours from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129099#M371317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sridar,&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Timestamp(Timestamp#('07/10/2016 01:00:00 000','MM/DD/YYYY hh:mm:ss fff') - 1/8,'MM/DD/YYYY hh:mm:ss fff')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 09:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129099#M371317</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-07-11T09:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or substacting hours from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129100#M371318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=date ( date#('07/10/2016 01:00:00' , 'MM/DD/YYYY hh:mm:ss') , 'MM/DD/YYYY hh:mm:ss')&lt;/P&gt;&lt;P&gt;&amp;amp; chr(10) &amp;amp;&lt;/P&gt;&lt;P&gt;date ( date ( date#('07/10/2016 01:00:00' , 'MM/DD/YYYY hh:mm:ss') , 'MM/DD/YYYY hh:mm:ss') + (-180/24/60) , 'MM/DD/YYYY hh:mm:ss')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 09:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129100#M371318</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2016-07-11T09:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or substacting hours from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129101#M371319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think first thing to check here is if your timestamps are read correctly by QlikView. If it has doing as simple as this could work:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TimeStamp(TimeStampField + MakeTime(3)) as NewField&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this in front end&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;TimeStamp(TimeStampField + MakeTime(3))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if timestamps are not interpreted correctly, try to fix that issue before you do this manipulation using TimeStamp#() or Date#() function&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/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 10:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129101#M371319</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-11T10:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding or substacting hours from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129102#M371320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 14:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-or-substacting-hours-from-timestamp/m-p/1129102#M371320</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2016-07-11T14:25:12Z</dc:date>
    </item>
  </channel>
</rss>

