<?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: Using 'mid' function to extract unusual date format in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-mid-function-to-extract-unusual-date-format/m-p/1727723#M64010</link>
    <description>&lt;P&gt;well, hey - you learn something new every day! Thanks for telling us about the date Egyptian format.&lt;BR /&gt;&lt;BR /&gt;I think you likely need to tell Qlik that the value you're extracting is a date before formatting it. Have you tried&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;=DATE(Date#(mid([ID],2,6),'YYMMDD'),'YY/MM/DD')&lt;/P&gt;&lt;P&gt;That should tell Qlik that the value you've extracted is a date in the format YYMMDD and you want it to then be displayed as YY/MM/DD'.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2020 14:18:40 GMT</pubDate>
    <dc:creator>millerhm</dc:creator>
    <dc:date>2020-07-14T14:18:40Z</dc:date>
    <item>
      <title>Using 'mid' function to extract unusual date format</title>
      <link>https://community.qlik.com/t5/App-Development/Using-mid-function-to-extract-unusual-date-format/m-p/1727713#M64009</link>
      <description>&lt;P&gt;To Whom it May Concern,&lt;/P&gt;&lt;P&gt;I am currently trying to extract a date from the following ID format:&lt;/P&gt;&lt;P&gt;2720815240xxxx&amp;nbsp; &amp;nbsp;- the date in this ID is represented by the 2nd to 7th digits 72-08-15&amp;nbsp; &amp;nbsp;(YY/MM/DD) &lt;STRONG&gt;August 15th 1972&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3041009240xxxx&amp;nbsp; &amp;nbsp;- the date in this ID is represented by the 2nd to 7th digits 04-10-09&amp;nbsp; &amp;nbsp;(YY/MM/DD) &lt;STRONG&gt;October 10th 2004&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I was able to extract the relevant numbers via the following code:&amp;nbsp;&lt;STRONG&gt;=mid([ID],2,6)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Following this step I was unable to obtain correct dates. I tried the following expression:&amp;nbsp;=&lt;STRONG&gt;DATE(mid([ID],2,6),'YY/MM/DD')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and got results in date format that were incorrect. For example the above-mentioned&amp;nbsp;2720815240xxxx&amp;nbsp; became 73/07/09.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway to work with this format? basically anything beginning with 2 means the person was born in the 20th century, and anything beginning with 3 the 21st century. This is the Egyptian ID system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your support!&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Mohammed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-mid-function-to-extract-unusual-date-format/m-p/1727713#M64009</guid>
      <dc:creator>malradi88</dc:creator>
      <dc:date>2024-11-16T18:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using 'mid' function to extract unusual date format</title>
      <link>https://community.qlik.com/t5/App-Development/Using-mid-function-to-extract-unusual-date-format/m-p/1727723#M64010</link>
      <description>&lt;P&gt;well, hey - you learn something new every day! Thanks for telling us about the date Egyptian format.&lt;BR /&gt;&lt;BR /&gt;I think you likely need to tell Qlik that the value you're extracting is a date before formatting it. Have you tried&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;=DATE(Date#(mid([ID],2,6),'YYMMDD'),'YY/MM/DD')&lt;/P&gt;&lt;P&gt;That should tell Qlik that the value you've extracted is a date in the format YYMMDD and you want it to then be displayed as YY/MM/DD'.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 14:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-mid-function-to-extract-unusual-date-format/m-p/1727723#M64010</guid>
      <dc:creator>millerhm</dc:creator>
      <dc:date>2020-07-14T14:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using 'mid' function to extract unusual date format</title>
      <link>https://community.qlik.com/t5/App-Development/Using-mid-function-to-extract-unusual-date-format/m-p/1727764#M64011</link>
      <description>&lt;P&gt;You need to provide the same format as is using date# to recognize it as Date and then use Date function on top of that&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;date(DATE#(mid([ID],2,6),'YYMMDD'),'YY/MM/DD')&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 17:18:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-mid-function-to-extract-unusual-date-format/m-p/1727764#M64011</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-14T17:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using 'mid' function to extract unusual date format</title>
      <link>https://community.qlik.com/t5/App-Development/Using-mid-function-to-extract-unusual-date-format/m-p/1727951#M64012</link>
      <description>&lt;P&gt;Thank you very much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 10:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-mid-function-to-extract-unusual-date-format/m-p/1727951#M64012</guid>
      <dc:creator>malradi88</dc:creator>
      <dc:date>2020-07-15T10:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using 'mid' function to extract unusual date format</title>
      <link>https://community.qlik.com/t5/App-Development/Using-mid-function-to-extract-unusual-date-format/m-p/1727952#M64013</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 10:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-mid-function-to-extract-unusual-date-format/m-p/1727952#M64013</guid>
      <dc:creator>malradi88</dc:creator>
      <dc:date>2020-07-15T10:06:54Z</dc:date>
    </item>
  </channel>
</rss>

