<?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: Date format DD-MMM-YY to DD-MM-YYYY issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121193#M756423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I tried this. It works partially meaning, a few instances where BIRTHDATE is 01-APR-2011, YY = 11 which is &amp;lt;= 66 and&amp;nbsp; adds a prefix 19 formats it as 1966 which is incorrect. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2018 17:53:18 GMT</pubDate>
    <dc:creator>suraj_qlikdev</dc:creator>
    <dc:date>2018-09-12T17:53:18Z</dc:date>
    <item>
      <title>Date format DD-MMM-YY to DD-MM-YYYY issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121188#M756418</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;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;I am trying to convert the date format from DD-MMM-YY to DD-MM-YYYY using the below expression. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=Date(Date#(BIRTHDATE,'DD-MMM-YY'),'DD-MM-YYYY') &lt;/SPAN&gt;&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;SPAN style="font-size: 13.3333px;"&gt;Date type of the field from the source is Varchar.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;I am see &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;issues with years &amp;lt;= 66. Example -&amp;nbsp; YY 66 gets formatted to 2066 instead of 1966. However, &amp;gt;= 67 YY formats without any issues. Can someone please help me with this issue? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;IMG alt="DOB issue - 1.png" class="jive-image image-1" src="/legacyfs/online/213379_DOB issue - 1.png" style="height: 336px; width: 620px;" /&gt;&lt;/SPAN&gt;&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;IMG alt="DOB 2.png" class="jive-image image-2" height="207" src="/legacyfs/online/213410_DOB 2.png" style="height: 207px; width: 230.073px;" width="230" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DOB issue - 3.png" class="jive-image image-3" height="206" src="/legacyfs/online/213411_DOB issue - 3.png" style="height: 205.616px; width: 230px;" width="230" /&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/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121188#M756418</guid>
      <dc:creator>suraj_qlikdev</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date format DD-MMM-YY to DD-MM-YYYY issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121189#M756419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue is the source column being a varchar. IMHO it leads qlik to guess. Which leads to the results you mentioned&lt;/P&gt;&lt;P&gt;You might have to get down and dirty while loading the data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 15:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121189#M756419</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-09-12T15:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date format DD-MMM-YY to DD-MM-YYYY issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121190#M756420</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;on the script, you can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Date(Date#(BIRTHDATE,'DD-MMM-YY'),'YY') &amp;lt;= 66, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Date(Date#(BIRTHDATE,'DD-MMM-),'YY')&lt;/SPAN&gt;&amp;amp;'-19'&amp;amp;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Date(Date#(BIRTHDATE,'DD-MMM-YY'),'YY'), &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Date(Date#(BIRTHDATE,'DD-MMM-YY'),'DD-MM-YYYY'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 16:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121190#M756420</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-09-12T16:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date format DD-MMM-YY to DD-MM-YYYY issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121191#M756421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I kicked this over to our ETL team. They are tweaking it in the source. Thanks!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 17:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121191#M756421</guid>
      <dc:creator>suraj_qlikdev</dc:creator>
      <dc:date>2018-09-12T17:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Date format DD-MMM-YY to DD-MM-YYYY issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121192#M756422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;great. hope it works out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 17:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121192#M756422</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-09-12T17:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date format DD-MMM-YY to DD-MM-YYYY issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121193#M756423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I tried this. It works partially meaning, a few instances where BIRTHDATE is 01-APR-2011, YY = 11 which is &amp;lt;= 66 and&amp;nbsp; adds a prefix 19 formats it as 1966 which is incorrect. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 17:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121193#M756423</guid>
      <dc:creator>suraj_qlikdev</dc:creator>
      <dc:date>2018-09-12T17:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Date format DD-MMM-YY to DD-MM-YYYY issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121194#M756424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ref taken from Colin albert's (Thanks @Albert for your expression) expr and tweaked. Check here: &lt;A href="https://community.qlik.com/thread/287214"&gt;Convert 6 digit number to date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;may be you can try like below: however you need to give a range for the year 19 to consider, I have taken the years between 30 and 67 will fall in 19 and anything apart will have 20. Hope this is ok?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Date(Date#(Left('06-APR-66',7) &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( Mid('06-APR-66',8,2) &amp;gt; 30 AND Mid('06-APR-66',8,2) &amp;lt; 67, '19' &amp;amp; Mid('06-APR-66',8,2), '20' &amp;amp; Mid('06-APR-66',8,2)), 'DD-MMM-YYYY'), 'DD-MM-YYYY') &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 18:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121194#M756424</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-09-12T18:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Date format DD-MMM-YY to DD-MM-YYYY issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121195#M756425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my bad, didn't think about it.. if you add some conditions on it, it will work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 19:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121195#M756425</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-09-12T19:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date format DD-MMM-YY to DD-MM-YYYY issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121196#M756426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome! &lt;SPAN style="font-size: 10pt;"&gt;Tweaked your expression just a little bit and this solves my problem. &lt;/SPAN&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Date(Date#(Left(BIRTHDATE,7) &amp;amp; if( Mid(BIRTHDATE,8,2) &amp;gt; RIGHT(YEAR(TODAY( )),2) AND Mid(BIRTHDATE,8,2) &amp;lt;= 99, '19' &amp;amp; Mid(BIRTHDATE,8,2), '20' &amp;amp; Mid(BIRTHDATE,8,2)), 'DD-MMM-YYYY'), 'DD-MM-YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/98547"&gt;vishsaggi&lt;/A&gt;‌ - Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 19:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121196#M756426</guid>
      <dc:creator>suraj_qlikdev</dc:creator>
      <dc:date>2018-09-12T19:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date format DD-MMM-YY to DD-MM-YYYY issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121197#M756427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it worked for you. However, i still suggest you to touch base with backend team if they can get the year in 4digits which makes life simpler. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 20:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-DD-MMM-YY-to-DD-MM-YYYY-issue/m-p/121197#M756427</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-09-12T20:43:56Z</dc:date>
    </item>
  </channel>
</rss>

