<?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 DateTime to Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/DateTime-to-Date/m-p/164912#M37437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tend to use floor() myself, but if I weren't already in that habit, the daystart() function would probably be a slightly better choice. Same exact numeric result, but floor() is a mathematical function that takes advantage of QlikView's internal formats, while daystart() is a date/time function that doesn't depend on the internal format. Very minor point overall, though, as I'm pretty confident that QlikView will never change the way they represent dates and times.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Mar 2010 01:28:02 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-03-04T01:28:02Z</dc:date>
    <item>
      <title>DateTime to Date</title>
      <link>https://community.qlik.com/t5/QlikView/DateTime-to-Date/m-p/164908#M37433</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;Think this shouldn't be a difficult one ... but just can't find the correct answer ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a load scipt containing a DateTime value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;LOAD .... modificationdatetime, ... FROM ...&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I also have a calendar to which I want the modificationdatetime point to ... Sounds easy?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;LET vMinDate = NUM(DATE('1-1-2004'));&lt;BR /&gt;LET vMaxDate = NUM(TODAY());&lt;BR /&gt;&lt;BR /&gt;TempCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt; $(vMinDate)+ITERNO() AS NUM,&lt;BR /&gt; DATE($(vMinDate)+ITERNO()-1) AS TempDate&lt;BR /&gt;&lt;BR /&gt;AUTOGENERATE (1) WHILE&lt;BR /&gt; $(vMinDate)+ITERNO()-1 &amp;lt;= $(vMaxDate);&lt;BR /&gt;&lt;BR /&gt;ModificationDateCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt; TempDate AS modificationdatetime,&lt;BR /&gt; YEAR(TempDate) AS Year,&lt;BR /&gt; APPLYMAP('Quarter', NUM(MONTH(TempDate))) AS Quarter,&lt;BR /&gt; MONTH(TempDate) AS Month,&lt;BR /&gt; WEEK(TempDate) AS Week,&lt;BR /&gt; WEEKDAY(TempDate) AS WeekDay,&lt;BR /&gt; DAY(TempDate) AS Day,&lt;BR /&gt; DATE(MONTHSTART(TempDate), 'MMM-YYYY') AS MonthYear&lt;BR /&gt;&lt;BR /&gt;RESIDENT&lt;BR /&gt; TempCalendar&lt;BR /&gt;ORDER BY&lt;BR /&gt; TempDate;&lt;BR /&gt;DROP TABLE TempCalendar;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Does not seem to be wrong ...&lt;/P&gt;&lt;P&gt;But now a way to find to get the correct date connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did try the following&lt;/P&gt;&lt;P&gt;date(modificationdatetime)&lt;BR /&gt;date(modificationdatetime, 'DD-MM-YYYY')&lt;BR /&gt;date(num(modifcationdatetime))&lt;/P&gt;&lt;P&gt;In all these situations the date is displayed correctly, but the connection with the calendar seems to be wrong, since I don't see anything when selection the Year or something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 14:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateTime-to-Date/m-p/164908#M37433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-02T14:42:07Z</dc:date>
    </item>
    <item>
      <title>DateTime to Date</title>
      <link>https://community.qlik.com/t5/QlikView/DateTime-to-Date/m-p/164909#M37434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date function returns only format, but does not change the value.&lt;/P&gt;&lt;P&gt;You need to use MakeDate function like this:&lt;/P&gt;&lt;P&gt;MakeDate(Year(modificationdatetime),Month(modificationdatetime),Day(modificationdatetime))&lt;/P&gt;&lt;P&gt;Rds,&lt;BR /&gt;AT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 14:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateTime-to-Date/m-p/164909#M37434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-02T14:52:48Z</dc:date>
    </item>
    <item>
      <title>DateTime to Date</title>
      <link>https://community.qlik.com/t5/QlikView/DateTime-to-Date/m-p/164910#M37435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx ... it was really easy ... just couldn't figure it out &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 15:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateTime-to-Date/m-p/164910#M37435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-02T15:07:30Z</dc:date>
    </item>
    <item>
      <title>DateTime to Date</title>
      <link>https://community.qlik.com/t5/QlikView/DateTime-to-Date/m-p/164911#M37436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you have a Timestamp you need to get the date isolated:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;FLOOR(modificationdatetime) AS modificationdatetime&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Matthias&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 15:25:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateTime-to-Date/m-p/164911#M37436</guid>
      <dc:creator />
      <dc:date>2010-03-02T15:25:22Z</dc:date>
    </item>
    <item>
      <title>DateTime to Date</title>
      <link>https://community.qlik.com/t5/QlikView/DateTime-to-Date/m-p/164912#M37437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tend to use floor() myself, but if I weren't already in that habit, the daystart() function would probably be a slightly better choice. Same exact numeric result, but floor() is a mathematical function that takes advantage of QlikView's internal formats, while daystart() is a date/time function that doesn't depend on the internal format. Very minor point overall, though, as I'm pretty confident that QlikView will never change the way they represent dates and times.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 01:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateTime-to-Date/m-p/164912#M37437</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-03-04T01:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime to Date</title>
      <link>https://community.qlik.com/t5/QlikView/DateTime-to-Date/m-p/164913#M37438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthias, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Your answer is so much helpful. Thank You.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 08:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateTime-to-Date/m-p/164913#M37438</guid>
      <dc:creator />
      <dc:date>2016-06-21T08:35:10Z</dc:date>
    </item>
  </channel>
</rss>

