<?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: Making timestamp adds days to date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130710#M636180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;instead doing it using + operator, format it using Timestamp function like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Timestamp(Timestamp#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RsvLineCreateDate &amp;amp; [RsvLine Create Hour],'MM/DD/YYYYhh:ss'),'DD/MM/YYYY hh:mm')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 07:55:08 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2016-05-24T07:55:08Z</dc:date>
    <item>
      <title>Making timestamp adds days to date</title>
      <link>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130706#M636176</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;based on other discussions, I used the following expression to create a timestamp&lt;/P&gt;&lt;P&gt;based on a date and an hour from different fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timestamp(RsvLineCreateDate+ [RsvLine Create Hour], 'DD/MM/YY hh:mm')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the final date in the timestamp is always 2 days later then the basis date.&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;date: 07/11/2011&lt;/P&gt;&lt;P&gt;time:07:51:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final timestamp: 09/11/2011 07:51&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why it happens?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 07:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130706#M636176</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2016-05-24T07:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Making timestamp adds days to date</title>
      <link>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130707#M636177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What (actual numeric) values do the two fields contain? It seems that one of them is not what you think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 07:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130707#M636177</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-05-24T07:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Making timestamp adds days to date</title>
      <link>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130708#M636178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can show the screenshot of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RsvLineCreateDate,&amp;nbsp; [RsvLine Create Hour] in list box?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 07:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130708#M636178</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-24T07:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Making timestamp adds days to date</title>
      <link>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130709#M636179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that the issue is in the time field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression =num([RsvLine Create Hour]) yields:&lt;/P&gt;&lt;P&gt;2.3270833333372&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the 2 days are actually hidden in the time field..&lt;/P&gt;&lt;P&gt;Displaying the time field as timestamp shows:&lt;/P&gt;&lt;P&gt;01/01/1900 07:51:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does this happen???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 07:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130709#M636179</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2016-05-24T07:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Making timestamp adds days to date</title>
      <link>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130710#M636180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;instead doing it using + operator, format it using Timestamp function like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Timestamp(Timestamp#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RsvLineCreateDate &amp;amp; [RsvLine Create Hour],'MM/DD/YYYYhh:ss'),'DD/MM/YYYY hh:mm')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 07:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130710#M636180</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-24T07:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Making timestamp adds days to date</title>
      <link>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130711#M636181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to convert the fields into date and time internal values before you add them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;= timestamp(date#('07/11/2011','DD/MM/YYYY') +time#('07:51:00','hh:mm:ss'),'DD/MM/YYYY hh:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 08:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130711#M636181</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2016-05-24T08:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Making timestamp adds days to date</title>
      <link>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130712#M636182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought it would be " healthier" to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Timestamp(Num((RsvLineCreateDate)+num(MakeTime(Hour([RsvLine Create Hour])))),'DD/MM/YYYY hh:00')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks messy but re solved the issue... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 08:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130712#M636182</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2016-05-24T08:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Making timestamp adds days to date</title>
      <link>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130713#M636183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 08:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130713#M636183</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2016-05-24T08:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Making timestamp adds days to date</title>
      <link>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130714#M636184</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;another possibility to get rid of the (integer) day part of your time field:&lt;/P&gt;&lt;P&gt;&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: 13px;"&gt;Timestamp(RsvLineCreateDate + &lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;Frac(&lt;/SPAN&gt;[RsvLine Create Hour]&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;)&lt;/SPAN&gt;, 'DD/MM/YY hh:mm')&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;&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;hope this helps&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;regards&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;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 22:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-timestamp-adds-days-to-date/m-p/1130714#M636184</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-05-24T22:32:51Z</dc:date>
    </item>
  </channel>
</rss>

