<?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 Getting a timestamp into a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-a-timestamp-into-a-variable/m-p/471816#M176203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a timestamp field within a table.&amp;nbsp; I would like to now get that timestamp field (don't need to change formatting) into a variable to use within a Where clause on another table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The peek function removes the time piece and rounds up the time which is no good.&amp;nbsp; Need to keep the time as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Dec 2012 17:53:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-29T17:53:22Z</dc:date>
    <item>
      <title>Getting a timestamp into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-timestamp-into-a-variable/m-p/471816#M176203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a timestamp field within a table.&amp;nbsp; I would like to now get that timestamp field (don't need to change formatting) into a variable to use within a Where clause on another table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The peek function removes the time piece and rounds up the time which is no good.&amp;nbsp; Need to keep the time as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2012 17:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-timestamp-into-a-variable/m-p/471816#M176203</guid>
      <dc:creator />
      <dc:date>2012-12-29T17:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a timestamp into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-timestamp-into-a-variable/m-p/471817#M176204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I very much doubt peek truncates your timestamp. I've never seen it do that. Try putting this in your script and reload:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;load now(1) as MyTimeStamp&lt;/P&gt;&lt;P&gt;autogenerate 1 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMyTime = peek('MyTimeStamp');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now open the variable editor (ctrl+alt+v) and look at the value of the new variable vMyTime. It should still have the time part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you really sure the timestamp date was stored as a timestamp? Do you dollar-expand the variable? &lt;/P&gt;&lt;P&gt;i.e something like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * from test.qvd (qvd) where MyTimeField &amp;gt; $(vMyTime);&amp;nbsp; //if MyTimeField isn't a timestamp use the timestamp# function on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the qvw document you're working on, or at least the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2012 18:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-timestamp-into-a-variable/m-p/471817#M176204</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-29T18:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a timestamp into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-timestamp-into-a-variable/m-p/471818#M176205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert.&amp;nbsp; Boy - I don't know what was happening earlier, but all is fine.&amp;nbsp; But thank you for your clarification on what I should expect from the peek function and for your time.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2012 19:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-timestamp-into-a-variable/m-p/471818#M176205</guid>
      <dc:creator />
      <dc:date>2012-12-29T19:03:43Z</dc:date>
    </item>
  </channel>
</rss>

