<?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 Date creation problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-creation-problem/m-p/318271#M1200090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with num( makedate(year,month,day)) if you want the date use makedate(year,month,day) in this way you force qv to make a date with that numbers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2011 09:22:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-06T09:22:00Z</dc:date>
    <item>
      <title>Date creation problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-creation-problem/m-p/318270#M1200089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;Hi,&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;I have 3 variables like: year=2011, month=02, day=01.&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;I want to create date using these variables in the "YYYY-MM-DD" format.&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;I went through the date help page and found&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" class="MsoNormalTable" style="margin: auto auto auto 30pt; width: 337.5pt; mso-cellspacing: 1.5pt; mso-yfti-tbllook: 1184; border: 1.5pt outset;" width="450"&gt;&lt;TBODY&gt;&lt;TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes;"&gt;&lt;TD style="background: silver; width: 34%; border: #ece9d8; padding: 1.5pt;" valign="top" width="34%"&gt;&lt;P style="margin: 0in 6pt 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="background: silver; width: 33%; border: #ece9d8; padding: 1.5pt;" valign="top" width="33%"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 6pt 0pt; mso-margin-top-alt: auto"&gt;Default setting 1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="background: silver; width: 33%; border: #ece9d8; padding: 1.5pt;" valign="top" width="33%"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 6pt 0pt; mso-margin-top-alt: auto"&gt;Default setting 2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="mso-yfti-irow: 1; mso-yfti-lastrow: yes;"&gt;&lt;TD style="background: silver; width: 34%; border: #ece9d8; padding: 1.5pt;" valign="top" width="34%"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 6pt 0pt; mso-margin-top-alt: auto"&gt;Date format&lt;/P&gt;&lt;/TD&gt;&lt;TD style="background: white; width: 33%; border: #ece9d8; padding: 1.5pt;" valign="top" width="33%"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 6pt 0pt; mso-margin-top-alt: auto; text-align: center"&gt;YY-MM-DD&lt;/P&gt;&lt;/TD&gt;&lt;TD style="background: white; width: 33%; border: #ece9d8; padding: 1.5pt;" valign="top" width="33%"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 6pt 0pt; mso-margin-top-alt: auto; text-align: center"&gt;M/D/YY&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt 0.5in; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;B&gt;date( A )&lt;/B&gt; where A=35648 returns:&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" class="MsoNormalTable" style="margin: auto auto auto 30pt; width: 337.5pt; mso-cellspacing: 1.5pt; mso-yfti-tbllook: 1184; border: 1.5pt outset;" width="450"&gt;&lt;TBODY&gt;&lt;TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes;"&gt;&lt;TD style="background: silver; width: 33%; border: #ece9d8; padding: 1.5pt;" valign="top" width="33%"&gt;&lt;P style="margin: 0in 6pt 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="background: navy; width: 33%; border: #ece9d8; padding: 1.5pt;" valign="top" width="33%"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 6pt 0pt; mso-margin-top-alt: auto"&gt;Setting 1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="background: navy; width: 33%; border: #ece9d8; padding: 1.5pt;" valign="top" width="33%"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 6pt 0pt; mso-margin-top-alt: auto"&gt;Setting 2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="mso-yfti-irow: 1;"&gt;&lt;TD style="background: silver; width: 33%; border: #ece9d8; padding: 1.5pt;" valign="top" width="33%"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 6pt 0pt; mso-margin-top-alt: auto"&gt;String&lt;/P&gt;&lt;/TD&gt;&lt;TD style="background: white; width: 33%; border: #ece9d8; padding: 1.5pt;" valign="top" width="33%"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 6pt 0pt; mso-margin-top-alt: auto; text-align: right"&gt;97-08-06&lt;/P&gt;&lt;/TD&gt;&lt;TD style="background: white; width: 33%; border: #ece9d8; padding: 1.5pt;" valign="top" width="33%"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 6pt 0pt; mso-margin-top-alt: auto; text-align: right"&gt;8/6/97&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="mso-yfti-irow: 2; mso-yfti-lastrow: yes;"&gt;&lt;TD style="background: silver; width: 33%; border: #ece9d8; padding: 1.5pt;" valign="top" width="33%"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 6pt 0pt; mso-margin-top-alt: auto"&gt;Number&lt;/P&gt;&lt;/TD&gt;&lt;TD style="background: white; width: 33%; border: #ece9d8; padding: 1.5pt;" valign="top" width="33%"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 6pt 0pt; mso-margin-top-alt: auto; text-align: right"&gt;35648&lt;/P&gt;&lt;/TD&gt;&lt;TD style="background: white; width: 33%; border: #ece9d8; padding: 1.5pt;" valign="top" width="33%"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 6pt 0pt; mso-margin-top-alt: auto; text-align: right"&gt;35648&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;B&gt;Can you please guide me which formula has been applied here to convert the "97-08-06" into "35648"?&lt;/B&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;B&gt;I want to use same formula in my case.&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0in 0in 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto"&gt;Thanks&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 09:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-creation-problem/m-p/318270#M1200089</guid>
      <dc:creator />
      <dc:date>2011-04-06T09:10:20Z</dc:date>
    </item>
    <item>
      <title>Date creation problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-creation-problem/m-p/318271#M1200090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with num( makedate(year,month,day)) if you want the date use makedate(year,month,day) in this way you force qv to make a date with that numbers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 09:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-creation-problem/m-p/318271#M1200090</guid>
      <dc:creator />
      <dc:date>2011-04-06T09:22:00Z</dc:date>
    </item>
    <item>
      <title>Date creation problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-creation-problem/m-p/318272#M1200091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First you have to use the MAKEDATE-function:&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;MAKEDATE(year, month, day)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;This should transform your variables into a date, which will be displayed as in your settings for dates. &lt;BR /&gt;If used in scripts, you may need to embed it into $(...), like other variables. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If another display is required you may further embed with DATE-function.&lt;/P&gt;&lt;P&gt;See the attached&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 09:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-creation-problem/m-p/318272#M1200091</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2011-04-06T09:24:02Z</dc:date>
    </item>
  </channel>
</rss>

