<?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: Issue with dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-dates/m-p/1275239#M864545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Muthukumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is not relevant anymore.&lt;/P&gt;&lt;P&gt;The string Marcio posted&amp;nbsp; helped me resolve the problem at hand.&lt;/P&gt;&lt;P&gt;When using this string and mixing up the dates a bit MM-DD // DD-MM // D-M // M-D i noticed that the output did not change at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem was created by a user who had made some sales lines in 2007 but put in the date 31-05-2047 instead of 31-5-2007. This wrong date has never been changed and now it is stuck in our database because it is historic data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've joined this table with another one and used that (correct) date. Issue within Qlikview solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2016 12:48:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-12-21T12:48:22Z</dc:date>
    <item>
      <title>Issue with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-dates/m-p/1275235#M864541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hello fellow Qlikviewers, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;I'm having some trouble with one of my dates within the loading script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Mu quest is a search for the max of dates of 3 tables. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #000000;"&gt;I'm from the Netherlands so that means we normally use a dateformat as DD-MM-YYYY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #000000;"&gt;Apparently my Database cannot handle that input. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #000000;"&gt;So after a lot of trial and error i noticed that MM-DD-YYYY was working well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="color: #000000;"&gt;I'm using the dateformat&lt;/SPAN&gt;:&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;SET&lt;/SPAN&gt; DateFormat&lt;SPAN style="color: #000000;"&gt;='MM-DD-YYYY';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt;All Max dates are loaded as:&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; color: #0000ff;"&gt;Load DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; color: #0000ff;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; color: #ff0000;"&gt;datefield&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; color: #ff0000;"&gt;MaxDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Now my issue: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;In table 1 i get a correct date for today:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16-12-2016&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;In table 2 i also get the same result:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16-12-2016&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;However, in table 3, my date is shown as:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 05-31-2047&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I'm using the exact same date format, the same database and the same load script..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;At this moment i am Clueless!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Anyone has a bright idea?&lt;/SPAN&gt; &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/Issue-with-dates/m-p/1275235#M864541</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-dates/m-p/1275236#M864542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in table 3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(max(datefield),'MM-DD-YYYY') AS MaxDate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 16:20:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-dates/m-p/1275236#M864542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-16T16:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-dates/m-p/1275237#M864543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it was not the specific solution to fix my problem but it turned me in a direction where i found the problem at hand!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 11:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-dates/m-p/1275237#M864543</guid>
      <dc:creator />
      <dc:date>2016-12-21T11:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-dates/m-p/1275238#M864544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you send your data model?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 11:54:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-dates/m-p/1275238#M864544</guid>
      <dc:creator>muthukumar77</dc:creator>
      <dc:date>2016-12-21T11:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-dates/m-p/1275239#M864545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Muthukumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is not relevant anymore.&lt;/P&gt;&lt;P&gt;The string Marcio posted&amp;nbsp; helped me resolve the problem at hand.&lt;/P&gt;&lt;P&gt;When using this string and mixing up the dates a bit MM-DD // DD-MM // D-M // M-D i noticed that the output did not change at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem was created by a user who had made some sales lines in 2007 but put in the date 31-05-2047 instead of 31-5-2007. This wrong date has never been changed and now it is stuck in our database because it is historic data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've joined this table with another one and used that (correct) date. Issue within Qlikview solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 12:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-dates/m-p/1275239#M864545</guid>
      <dc:creator />
      <dc:date>2016-12-21T12:48:22Z</dc:date>
    </item>
  </channel>
</rss>

