<?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 Peek function to pick a date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-function-to-pick-a-date/m-p/292168#M108452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The variable holds the numerical representation of the value retrieved from the DateField, so I think this is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you recall the variable value, you could use Date() function then to format the date, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Date($(vDate)) as PeekedDate,&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;from ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to format it with standard date format (or specify the format code string as second parameter in Date() function).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Dec 2011 17:34:26 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-12-10T17:34:26Z</dc:date>
    <item>
      <title>Peek function to pick a date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-to-pick-a-date/m-p/292166#M108450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am using the following line code to pick a date using peek function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vDate=Peek('DateFeild',$(i),'DateTable');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to use the variable vDate in LOAD statement. After execution, the table which loaded has decimal values instead of dates.&lt;/P&gt;&lt;P&gt;I want to get the exact dates.&amp;nbsp; Its because Peek function returns a string.&amp;nbsp; I am not able to figure out a way to get the date value when I use in LOAD statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2011 17:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-to-pick-a-date/m-p/292166#M108450</guid>
      <dc:creator />
      <dc:date>2011-12-10T17:14:06Z</dc:date>
    </item>
    <item>
      <title>Peek function to pick a date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-to-pick-a-date/m-p/292167#M108451</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 think DATE function would help you. Can you upload sample application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp; tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2011 17:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-to-pick-a-date/m-p/292167#M108451</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2011-12-10T17:28:34Z</dc:date>
    </item>
    <item>
      <title>Peek function to pick a date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-to-pick-a-date/m-p/292168#M108452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The variable holds the numerical representation of the value retrieved from the DateField, so I think this is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you recall the variable value, you could use Date() function then to format the date, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Date($(vDate)) as PeekedDate,&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;from ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to format it with standard date format (or specify the format code string as second parameter in Date() function).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2011 17:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-to-pick-a-date/m-p/292168#M108452</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-10T17:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function to pick a date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-to-pick-a-date/m-p/292169#M108453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope date function didnt work.&lt;/P&gt;&lt;P&gt;Attached please find the sample. I would appreciate any help.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2011 17:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-to-pick-a-date/m-p/292169#M108453</guid>
      <dc:creator />
      <dc:date>2011-12-10T17:55:26Z</dc:date>
    </item>
    <item>
      <title>Peek function to pick a date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-to-pick-a-date/m-p/292170#M108454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using single quotation marks around the variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'$(vMDMTargetDate)' as vDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number you get is 6 divided by 17 divided by 2011 ( 6/17/2011 ), QlikView expands the variable and then tried to evaluate the expanded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2011 19:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-to-pick-a-date/m-p/292170#M108454</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-10T19:01:13Z</dc:date>
    </item>
    <item>
      <title>Peek function to pick a date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-to-pick-a-date/m-p/292171#M108455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it seems that your source file has timestamp for date field as in [Date of Delivery] and it is not being taken in right format for date. can sample source files(csv) be uploaded?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp; tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2011 19:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-to-pick-a-date/m-p/292171#M108455</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2011-12-10T19:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function to pick a date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-to-pick-a-date/m-p/292172#M108456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys single quotation mark around the variable worked!&lt;/P&gt;&lt;P&gt;thanks again guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2011 13:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-to-pick-a-date/m-p/292172#M108456</guid>
      <dc:creator />
      <dc:date>2011-12-11T13:53:52Z</dc:date>
    </item>
  </channel>
</rss>

