<?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: Date not showing up..Please Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-not-showing-up-Please-Help/m-p/1079292#M932257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date() will format values of regular date fields, but it will not convert what it cannot understand. [fkdimdate] contains large numerical values like 20081101 which it cannot understand. Today is day number 42432, so your large number 20081101 is still &lt;EM&gt;54864 years in the future&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should first use the Date#() function to tell QlikView what format the date value in [fkdimdate] is in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, &lt;SPAN style="font-family: 'courier new', courier;"&gt;=Date#(fkdimdate, 'YYYYMMDD')&lt;/SPAN&gt; will tell QlikView that those large numbers are in reality a date specification with a particular Year-Month-Day order. The return value of this Date#() call will be a proper QlikView date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can format the date value into a MonthYear representation&amp;nbsp; (actually you should call that one "YearMonth" instead of MonthYear because of the order) by giving it a proper format using the Date() function. Your original code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;... year(date(fkdimdate)) &amp;amp; '-' &amp;amp; num(month(date(fkdimdate))) ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;... Date(Date#(fkdimdate, 'YYYYMMDD'), 'YYYY-MM') ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'courier new', courier;"&gt;... Date(Date#(fkdimdate, 'YYYYMMDD'), 'YYYY-M') ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if you don't like leading zeroes in the month number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Remember: &lt;SPAN style="font-family: 'courier new', courier;"&gt;Date()&lt;/SPAN&gt; is used for formatting existing date values, &lt;SPAN style="font-family: 'courier new', courier;"&gt;Date#()&lt;/SPAN&gt; is for interpreting and converting unrecognised numbers into real date values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Peter&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Mar 2016 23:27:38 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2016-03-02T23:27:38Z</dc:date>
    <item>
      <title>Date not showing up..Please Help</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-showing-up-Please-Help/m-p/1079291#M932256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the Date() function but for some reason the date isn't getting displayed. I am attaching the QVD and QVW as data sample.&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>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-showing-up-Please-Help/m-p/1079291#M932256</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date not showing up..Please Help</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-showing-up-Please-Help/m-p/1079292#M932257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date() will format values of regular date fields, but it will not convert what it cannot understand. [fkdimdate] contains large numerical values like 20081101 which it cannot understand. Today is day number 42432, so your large number 20081101 is still &lt;EM&gt;54864 years in the future&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should first use the Date#() function to tell QlikView what format the date value in [fkdimdate] is in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, &lt;SPAN style="font-family: 'courier new', courier;"&gt;=Date#(fkdimdate, 'YYYYMMDD')&lt;/SPAN&gt; will tell QlikView that those large numbers are in reality a date specification with a particular Year-Month-Day order. The return value of this Date#() call will be a proper QlikView date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can format the date value into a MonthYear representation&amp;nbsp; (actually you should call that one "YearMonth" instead of MonthYear because of the order) by giving it a proper format using the Date() function. Your original code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;... year(date(fkdimdate)) &amp;amp; '-' &amp;amp; num(month(date(fkdimdate))) ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;... Date(Date#(fkdimdate, 'YYYYMMDD'), 'YYYY-MM') ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'courier new', courier;"&gt;... Date(Date#(fkdimdate, 'YYYYMMDD'), 'YYYY-M') ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if you don't like leading zeroes in the month number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Remember: &lt;SPAN style="font-family: 'courier new', courier;"&gt;Date()&lt;/SPAN&gt; is used for formatting existing date values, &lt;SPAN style="font-family: 'courier new', courier;"&gt;Date#()&lt;/SPAN&gt; is for interpreting and converting unrecognised numbers into real date values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Peter&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 23:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-showing-up-Please-Help/m-p/1079292#M932257</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-03-02T23:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date not showing up..Please Help</title>
      <link>https://community.qlik.com/t5/QlikView/Date-not-showing-up-Please-Help/m-p/1079293#M932258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 15:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-not-showing-up-Please-Help/m-p/1079293#M932258</guid>
      <dc:creator />
      <dc:date>2016-03-03T15:37:41Z</dc:date>
    </item>
  </channel>
</rss>

