<?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: makedate function generates an integer as opposed to the actual date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107241#M766777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loading from Excel file column 'EndDate'&lt;/P&gt;&lt;P&gt;if employee if still working in the company then the respective field is empty&lt;/P&gt;&lt;P&gt;Otherwise there is there is a date of resignation, such as '&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 75px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" width="75"&gt;05-01-97&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In QlikView I created &lt;EM&gt;Employee&lt;/EM&gt; table with&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt; if(len(date(EndDate,'DD/MM/YYYY')) &amp;lt; 1, makedate(2099,12,31), date(EndDate,'DD/MM/YYYY')) as EndDate,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;to generate &lt;EM&gt;EndDate&lt;/EM&gt; column.&lt;/P&gt;&lt;P&gt;The end result is as per the first screen shot which is '73050' is getting generated by &lt;EM&gt;makedate()&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Could this be due to:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET DateFormat='DD-MM-YY';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;in the declaration section of my script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is related to the issue at hand:&lt;/P&gt;&lt;P&gt;In another qvw file for&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; addyears&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MyDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'DD/MM/YYYY'),20) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The output is: &lt;STRONG&gt;42856&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;which means I have to use &lt;EM&gt;date()&lt;/EM&gt; for the second time as follows:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;addyears&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MyDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'DD/MM/YYYY'),20)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;just to have a proper date value as my output &lt;STRONG&gt;01/05/2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I also have &lt;EM&gt;&amp;nbsp; &lt;/EM&gt; SET DateFormat='DD-MM-YY';&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;declared in the beginning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Note: &lt;EM&gt;MyDate &lt;/EM&gt;is another column I was traversing in this second &lt;EM&gt;qvw&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jul 2018 06:37:04 GMT</pubDate>
    <dc:creator>happyjoshua777</dc:creator>
    <dc:date>2018-07-04T06:37:04Z</dc:date>
    <item>
      <title>makedate function generates an integer as opposed to the actual date</title>
      <link>https://community.qlik.com/t5/QlikView/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107239#M766775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used &lt;EM&gt;makedate(2099,12,31)&lt;/EM&gt; expecting it to generate the actual date, at least according to:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/makedate.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/makedate.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/makedate.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead I kept getting '73050' which is an integer equiv. of 31/12/2099:&lt;IMG __jive_id="206880" alt="integer.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206880_integer.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I had to resort to &lt;EM&gt;date(makedate(2099,12,31),'DD/MM/YYYY')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;in order to end up with the expected &lt;EM&gt;date&lt;/EM&gt; :&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="206881" alt="date.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/206881_date.png" style="height: auto; display: block; margin-left: auto; margin-right: auto;" /&gt;&lt;/P&gt;&lt;P&gt;This is the command in QlikView:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(len(date(EndDate,'DD/MM/YYYY')) &amp;lt; 1, date(makedate(2099,12,31),'DD/MM/YYYY'), date(EndDate,'DD/MM/YYYY')) as EndDate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is &lt;EM&gt;makedate&lt;/EM&gt; function behaving as expected? If, yes, does that mean that the offical article in &lt;SPAN style="text-decoration: underline;"&gt;help.qlik.com&lt;/SPAN&gt; is outdated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&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/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107239#M766775</guid>
      <dc:creator>happyjoshua777</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: makedate function generates an integer as opposed to the actual date</title>
      <link>https://community.qlik.com/t5/QlikView/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107240#M766776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Happy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;makedate function always return date . In your case, makedate is not behaving as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ca nyou share the application with some data, so that, I can see and let you know why are getting such results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akshaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 05:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107240#M766776</guid>
      <dc:creator>adityaakshaya</dc:creator>
      <dc:date>2018-07-04T05:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: makedate function generates an integer as opposed to the actual date</title>
      <link>https://community.qlik.com/t5/QlikView/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107241#M766777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loading from Excel file column 'EndDate'&lt;/P&gt;&lt;P&gt;if employee if still working in the company then the respective field is empty&lt;/P&gt;&lt;P&gt;Otherwise there is there is a date of resignation, such as '&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 75px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" width="75"&gt;05-01-97&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In QlikView I created &lt;EM&gt;Employee&lt;/EM&gt; table with&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt; if(len(date(EndDate,'DD/MM/YYYY')) &amp;lt; 1, makedate(2099,12,31), date(EndDate,'DD/MM/YYYY')) as EndDate,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;to generate &lt;EM&gt;EndDate&lt;/EM&gt; column.&lt;/P&gt;&lt;P&gt;The end result is as per the first screen shot which is '73050' is getting generated by &lt;EM&gt;makedate()&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Could this be due to:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET DateFormat='DD-MM-YY';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;in the declaration section of my script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is related to the issue at hand:&lt;/P&gt;&lt;P&gt;In another qvw file for&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; addyears&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MyDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'DD/MM/YYYY'),20) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The output is: &lt;STRONG&gt;42856&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;which means I have to use &lt;EM&gt;date()&lt;/EM&gt; for the second time as follows:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;addyears&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MyDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'DD/MM/YYYY'),20)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;just to have a proper date value as my output &lt;STRONG&gt;01/05/2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I also have &lt;EM&gt;&amp;nbsp; &lt;/EM&gt; SET DateFormat='DD-MM-YY';&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;declared in the beginning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Note: &lt;EM&gt;MyDate &lt;/EM&gt;is another column I was traversing in this second &lt;EM&gt;qvw&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 06:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107241#M766777</guid>
      <dc:creator>happyjoshua777</dc:creator>
      <dc:date>2018-07-04T06:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: makedate function generates an integer as opposed to the actual date</title>
      <link>https://community.qlik.com/t5/QlikView/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107242#M766778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(len(date#(EndDate,'DD/MM/YYYY')) &amp;gt; 0, makedate(2099,12,31), date(EndDate,'DD/MM/YYYY')) as EndDate.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 10:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107242#M766778</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-07-04T10:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: makedate function generates an integer as opposed to the actual date</title>
      <link>https://community.qlik.com/t5/QlikView/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107243#M766779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post real values to test?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 11:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107243#M766779</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-07-04T11:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: makedate function generates an integer as opposed to the actual date</title>
      <link>https://community.qlik.com/t5/QlikView/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107244#M766780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 75px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="75"&gt;EndDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;05-01-97&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;31-12-97&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried pasting the actual column from Excel. All other values in Excel rows are empty.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;MyDate&lt;/EM&gt; Excel column:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 68px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="68"&gt;&lt;SPAN style="text-decoration: underline;"&gt;MyDate&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;08-12-48&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;19-02-52&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;30-08-63&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;19-09-37&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;04-03-55&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;02-07-63&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;29-05-60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;09-01-58&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;27-01-66&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;30-08-63&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;29-05-60&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 11:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107244#M766780</guid>
      <dc:creator>happyjoshua777</dc:creator>
      <dc:date>2018-07-04T11:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: makedate function generates an integer as opposed to the actual date</title>
      <link>https://community.qlik.com/t5/QlikView/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107245#M766781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Can you check default date format&lt;/P&gt;&lt;P&gt;SET DateFormat='M/D/YYYY';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 11:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107245#M766781</guid>
      <dc:creator>thevingo</dc:creator>
      <dc:date>2018-07-04T11:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: makedate function generates an integer as opposed to the actual date</title>
      <link>https://community.qlik.com/t5/QlikView/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107246#M766782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is exactly what is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView uses by default, when creating a new document, the locale settings of the user session creating it. In my case, I have set Windows to English (US), but some of my colleagues have Swiss settings, so their date format is "DD.MM.YYYY"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result of MakeDate() is correct in any case. It is worth mentioning that QlikView does not have dates as different data types: any value is susceptible to have a numeric representation and a literal representation. In the case of Date() related functions, day 1 (numeric) is 31/12/1899 (literal, using mask DD/MM/YYYY) and today is day 43285.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data is coming with a different format than the one in your environment variable DateFormat you will need to use, for the fields to be displayed in the front-end, functions like Date() with masks, otherwise the literal representation will not be possible and QlikView will revert to the numeric value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also change that DateFormat variable, but then make sure that all the data you are loading is using the format you specify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: the numeric values for dates, by the way, are underused by most of the developers I know. There is nothing wrong in using 43285 in functions to compare dates, get intervals, extract months, calculate age, etc. I only use Date() when I want to display a value, for which I always use the mask to avoid that, in case other developers or users open my application, they see a different value (4.7.2018 is April or July?)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 12:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/makedate-function-generates-an-integer-as-opposed-to-the-actual/m-p/107246#M766782</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-07-04T12:07:50Z</dc:date>
    </item>
  </channel>
</rss>

