<?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 issues in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-issues/m-p/676#M793542</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;So I have this excel with dates. Half of the dates are in MM-DD-YYYY format and the other half in MM/DD/YYYY.&lt;/P&gt;&lt;P&gt;Now here is the thing. I load this thing into QlikView and I get this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="190039" alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/190039_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the second half of the data is now suddenly in DD-MM-YYYY instead of the original format MM/DD/YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Been playing around with date functions for sometime now and nothing seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I fix this and bring all the dates into a single format? I don't mind if its in DD-MM-YYYY or MM-DD-YYYY or anything, but I just need it in the same format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arjun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>_armoco_</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Date issues</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues/m-p/676#M793542</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;So I have this excel with dates. Half of the dates are in MM-DD-YYYY format and the other half in MM/DD/YYYY.&lt;/P&gt;&lt;P&gt;Now here is the thing. I load this thing into QlikView and I get this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="190039" alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/190039_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the second half of the data is now suddenly in DD-MM-YYYY instead of the original format MM/DD/YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Been playing around with date functions for sometime now and nothing seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I fix this and bring all the dates into a single format? I don't mind if its in DD-MM-YYYY or MM-DD-YYYY or anything, but I just need it in the same format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arjun&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-issues/m-p/676#M793542</guid>
      <dc:creator>_armoco_</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date issues</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues/m-p/677#M793543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try like this format in your script&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Floor(Date),'D/M/YYYY') as DateNew;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/190048_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 06:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues/m-p/677#M793543</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2018-01-15T06:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Date issues</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues/m-p/678#M793544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Devarasu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. Tried it out:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="190047" alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/190047_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Dates upto 12th are missing now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arjun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 07:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues/m-p/678#M793544</guid>
      <dc:creator>_armoco_</dc:creator>
      <dc:date>2018-01-15T07:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Date issues</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues/m-p/679#M793545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure the dates in red highlighted are in MM-DD-YYYY format? The DD-MM part in screen shows no value bigger than 12, so it could be DD-MM-YYYY also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 07:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues/m-p/679#M793545</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-01-15T07:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date issues</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues/m-p/680#M793546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be play around using &lt;A href="http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ConditionalFunctions/alt.htm" title="http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ConditionalFunctions/alt.htm"&gt;alt - script and chart function ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 07:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues/m-p/680#M793546</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-01-15T07:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date issues</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues/m-p/681#M793547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure its MM-DD-YYYY. Its my clients data from 1st to 21st December&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Arjun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 07:16:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues/m-p/681#M793547</guid>
      <dc:creator>_armoco_</dc:creator>
      <dc:date>2018-01-15T07:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date issues</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues/m-p/682#M793548</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;Tried &lt;STRONG&gt;Date(Floor(Date),'D/M/YYYY') as DateNew;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Dates are still messed up&lt;STRONG&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/190049_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Arjun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 07:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues/m-p/682#M793548</guid>
      <dc:creator>_armoco_</dc:creator>
      <dc:date>2018-01-15T07:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Date issues</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues/m-p/683#M793549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have two date formats in your input. This will get all the dates:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Alt(Date#(Date, 'yyyyMMdd'), Date#(Date, 'MMddyyyy'), 'ddMMyyyy') as Date,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adjust the last format string to the format you require if you don't want DMY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 07:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues/m-p/683#M793549</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-01-15T07:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date issues</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues/m-p/684#M793550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your source data is not so. If you load the as text you would see those dates have numbers which are actually not of Dec months. Hence the correction would be required at the source. Because, if you have the &lt;STRONG&gt;date value&lt;/STRONG&gt; (the number) wrong itself at the backend, no formatting, nor parsing can change the date.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/190052_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 07:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues/m-p/684#M793550</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-01-15T07:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Date issues</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues/m-p/685#M793551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! I guess that will solve it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 07:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues/m-p/685#M793551</guid>
      <dc:creator>_armoco_</dc:creator>
      <dc:date>2018-01-15T07:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Date issues</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issues/m-p/686#M793552</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;This is difficult one. You have to correct in source data. You can't solve it in qlik view script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason behind it is difficult to say&lt;/P&gt;&lt;P&gt;12-02-2017 is 12 Feb 2017 or 2nd Dec 2017 similar for&lt;/P&gt;&lt;P&gt;12-01-2017 is 12 Jan 2017 or 1st Dec 2017 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant Sangle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 07:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issues/m-p/686#M793552</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2018-01-15T07:57:05Z</dc:date>
    </item>
  </channel>
</rss>

