<?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: Function MID doesn't work on a Date field (DD/MM/YYYY) which is read as a serial number in scrip in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Function-MID-doesn-t-work-on-a-Date-field-DD-MM-YYYY-which-is/m-p/1701057#M53676</link>
    <description>&lt;P&gt;I with &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp; on this one, try using month(). If the two digits are important just format the numeric as two digits like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;NUM( &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;Month(personnePhysiqueNaissance) &lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;,'00')&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; A&lt;/EM&gt;&lt;EM&gt;S&lt;/EM&gt;&lt;EM&gt; Month&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2020 11:20:46 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2020-05-12T11:20:46Z</dc:date>
    <item>
      <title>Function MID doesn't work on a Date field (DD/MM/YYYY) which is read as a serial number in script</title>
      <link>https://community.qlik.com/t5/App-Development/Function-MID-doesn-t-work-on-a-Date-field-DD-MM-YYYY-which-is/m-p/1700977#M53672</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;I need your help to solve a problem on my Date field called “&lt;STRONG&gt;personnePhysiqueNaissance&lt;/STRONG&gt;”, which is in the format of DD/MM/YYYY.&lt;/P&gt;&lt;P&gt;I need to extract the month with Mid(4,2) function, in order to have 01, 02, 03, 04….&lt;/P&gt;&lt;P&gt;I’d like to use Mid function because the Month function returns January, February,… and the Num(month) returns 1, 2, 3, 4…&lt;/P&gt;&lt;P&gt;But the mid(4,2) doesn’t work as a flag created in script. For example, it returns 53 for 28/01/2000, 31 for 06/01/2000, … (field N°8 in the table below) . The &lt;STRONG&gt;personnePhysiqueNaissance&lt;/STRONG&gt; field is the N°1 column in the table below.&lt;/P&gt;&lt;P&gt;I think it has been read as a serial number date in script (I didn’t understand why and what does these words mean), while it has been read as a normal date in design. Because the Mid and Right function does work well on design (field N°7 in the table below).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mid Function in script" style="width: 435px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33414iDE529D61FB7A85CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture MID.PNG" alt="Mid Function in script" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Mid Function in script&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture Date.PNG" style="width: 743px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33413i4B0D6977FB64E0C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture Date.PNG" alt="Capture Date.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What can I do to use the mid function on this date field in script? Because I need to use it as a flag in script for one of my KPIs.&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Function-MID-doesn-t-work-on-a-Date-field-DD-MM-YYYY-which-is/m-p/1700977#M53672</guid>
      <dc:creator>thanhng34</dc:creator>
      <dc:date>2024-11-16T18:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Function MID doesn't work on a Date field (DD/MM/YYYY) which is read as a serial number in scrip</title>
      <link>https://community.qlik.com/t5/App-Development/Function-MID-doesn-t-work-on-a-Date-field-DD-MM-YYYY-which-is/m-p/1700991#M53673</link>
      <description>&lt;P&gt;Instead of using the string function mid(), try using date function month(), like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Month(&lt;/STRONG&gt;personnePhysiqueNaissance&lt;STRONG&gt;)&lt;/STRONG&gt; as Month&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 08:43:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Function-MID-doesn-t-work-on-a-Date-field-DD-MM-YYYY-which-is/m-p/1700991#M53673</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-05-12T08:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Function MID doesn't work on a Date field (DD/MM/YYYY) which is read as a serial number in scrip</title>
      <link>https://community.qlik.com/t5/App-Development/Function-MID-doesn-t-work-on-a-Date-field-DD-MM-YYYY-which-is/m-p/1701057#M53676</link>
      <description>&lt;P&gt;I with &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp; on this one, try using month(). If the two digits are important just format the numeric as two digits like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;NUM( &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;Month(personnePhysiqueNaissance) &lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;,'00')&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; A&lt;/EM&gt;&lt;EM&gt;S&lt;/EM&gt;&lt;EM&gt; Month&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 11:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Function-MID-doesn-t-work-on-a-Date-field-DD-MM-YYYY-which-is/m-p/1701057#M53676</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-05-12T11:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Function MID doesn't work on a Date field (DD/MM/YYYY) which is read as a serial number in scrip</title>
      <link>https://community.qlik.com/t5/App-Development/Function-MID-doesn-t-work-on-a-Date-field-DD-MM-YYYY-which-is/m-p/1701247#M53692</link>
      <description>&lt;P&gt;Thank you ! Your function&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;NUM( &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;Month(personnePhysiqueNaissance) &lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;,'00')&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; A&lt;/EM&gt;&lt;EM&gt;S&lt;/EM&gt;&lt;EM&gt; Month&amp;nbsp;&lt;/EM&gt;&amp;nbsp;resolved my problem, but I still didn't understand why a date field in DD/MM/YYYY format is read as a serial number on script.&lt;/P&gt;&lt;P&gt;Best regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 19:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Function-MID-doesn-t-work-on-a-Date-field-DD-MM-YYYY-which-is/m-p/1701247#M53692</guid>
      <dc:creator>thanhng34</dc:creator>
      <dc:date>2020-05-12T19:49:56Z</dc:date>
    </item>
  </channel>
</rss>

