<?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: Using Date in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Date-in-Script/m-p/457330#M697731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;MRSS:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;LOAD *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Date('$(QVDATE)','MM/DD/YYYY') as [As of Date];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use enclose the variable expression in single quotes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Mar 2013 17:48:16 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2013-03-19T17:48:16Z</dc:date>
    <item>
      <title>Using Date in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Date-in-Script/m-p/457328#M697729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Using tthis code, QVDATE = 2-28-2013.&amp;nbsp; Why does [As of Date] show as 5-31-1894?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Pol:&lt;BR /&gt;LOAD date(max([Month End Date]),'MM-DD-YYYY') as MonthEndDate1&lt;BR /&gt;FROM policy$(LoadYear).qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET QVDATE = peek('MonthEndDate1', 0, 'Pol');&lt;/P&gt;&lt;P&gt;Drop Table Pol;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MRSS:&lt;BR /&gt;LOAD *,&lt;BR /&gt; Date($(QVDATE),'MM/DD/YYYY') as [As of Date];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 17:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Date-in-Script/m-p/457328#M697729</guid>
      <dc:creator />
      <dc:date>2013-03-19T17:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using Date in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Date-in-Script/m-p/457329#M697730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Date#('$(QVDATE)','MM/DD/YYYY') as [As of Date];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;$(QVDATE) will be evaluated as 2 - 28 - 2013 = -2039 if you use it in the date() function. Try it in a textbox to see what happens: =date(-2039)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 17:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Date-in-Script/m-p/457329#M697730</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-19T17:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Date in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Date-in-Script/m-p/457330#M697731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;MRSS:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;LOAD *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Date('$(QVDATE)','MM/DD/YYYY') as [As of Date];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use enclose the variable expression in single quotes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 17:48:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Date-in-Script/m-p/457330#M697731</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-03-19T17:48:16Z</dc:date>
    </item>
  </channel>
</rss>

