<?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 in script not working in Qlik Sense Cloud? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-format-in-script-not-working-in-Qlik-Sense-Cloud/m-p/2076693#M88302</link>
    <description>&lt;P&gt;Hi, this perhaps?&lt;/P&gt;
&lt;P&gt;Date(Date#(InvoiceDate, 'YYYYMMDD'), 'YYYY-MM-DD') as InvoiceDate&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2023 09:23:51 GMT</pubDate>
    <dc:creator>BrunPierre</dc:creator>
    <dc:date>2023-05-26T09:23:51Z</dc:date>
    <item>
      <title>Date format in script not working in Qlik Sense Cloud?</title>
      <link>https://community.qlik.com/t5/App-Development/Date-format-in-script-not-working-in-Qlik-Sense-Cloud/m-p/2075115#M88192</link>
      <description>&lt;P&gt;In my load script I define the date format as:&lt;BR /&gt;&lt;BR /&gt;SET DateFormat='YYYY-MM-DD';&lt;/P&gt;
&lt;P&gt;I even specify the format during load as:&lt;/P&gt;
&lt;P&gt;Load&amp;nbsp;&lt;BR /&gt;date(InvoiceDate,'YYYY-MM-DD') as InvoiceDate&lt;BR /&gt;FROM&lt;/P&gt;
&lt;P&gt;Still in the data model and when using the field I get the date displayed in YYYYMMDD format. The only way I can get the format to YYYY-MM-DD is if I specifically in a visualization use date(InvoiceDate,'YYYY-MM-DD).&lt;BR /&gt;&lt;BR /&gt;What can I do to not having to wrap all my date fields with date()?&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 13:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-format-in-script-not-working-in-Qlik-Sense-Cloud/m-p/2075115#M88192</guid>
      <dc:creator>jonas_stratiteq</dc:creator>
      <dc:date>2023-05-24T13:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in script not working in Qlik Sense Cloud?</title>
      <link>https://community.qlik.com/t5/App-Development/Date-format-in-script-not-working-in-Qlik-Sense-Cloud/m-p/2075873#M88219</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can convert your date format to number in script and use required date format in presentation&lt;/P&gt;
&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Num(InvoiceDate) as InvoiceDate&lt;/P&gt;
&lt;P&gt;FROM .&lt;/P&gt;
&lt;P&gt;..&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 06:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-format-in-script-not-working-in-Qlik-Sense-Cloud/m-p/2075873#M88219</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2023-05-25T06:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in script not working in Qlik Sense Cloud?</title>
      <link>https://community.qlik.com/t5/App-Development/Date-format-in-script-not-working-in-Qlik-Sense-Cloud/m-p/2076686#M88301</link>
      <description>&lt;P&gt;Thank you Chanty for your suggestion but if anything that would make it worse &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;The goal is to not have to add date format in presentation but get the correct date formatting done in the script.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 09:05:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-format-in-script-not-working-in-Qlik-Sense-Cloud/m-p/2076686#M88301</guid>
      <dc:creator>jonas_stratiteq</dc:creator>
      <dc:date>2023-05-26T09:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in script not working in Qlik Sense Cloud?</title>
      <link>https://community.qlik.com/t5/App-Development/Date-format-in-script-not-working-in-Qlik-Sense-Cloud/m-p/2076693#M88302</link>
      <description>&lt;P&gt;Hi, this perhaps?&lt;/P&gt;
&lt;P&gt;Date(Date#(InvoiceDate, 'YYYYMMDD'), 'YYYY-MM-DD') as InvoiceDate&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 09:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-format-in-script-not-working-in-Qlik-Sense-Cloud/m-p/2076693#M88302</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-05-26T09:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in script not working in Qlik Sense Cloud?</title>
      <link>https://community.qlik.com/t5/App-Development/Date-format-in-script-not-working-in-Qlik-Sense-Cloud/m-p/2083742#M88832</link>
      <description>&lt;P&gt;Thank you for your suggestion but I have already tried every way I can think of to in the script make it a correct date. I have converted the date to a string with left, right, mid functions and then tried to make it a date but ended up getting the same result. I have converted it to a numeric 40k number and then turned it into a date but still the same result. &lt;BR /&gt;&lt;BR /&gt;The load is a resident from two optimized QVD loads (concatenated).&lt;/P&gt;
&lt;P&gt;I have found a workaround though.&lt;/P&gt;
&lt;P&gt;I have to rename the fields like this to get the date format to stick, clearly a bug..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;date(InvoiceDate) as InvoiceDate_temp&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Resident&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;rename field&amp;nbsp;InvoiceDate_temp to&amp;nbsp;InvoiceDate;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 12:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-format-in-script-not-working-in-Qlik-Sense-Cloud/m-p/2083742#M88832</guid>
      <dc:creator>jonas_stratiteq</dc:creator>
      <dc:date>2023-06-14T12:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in script not working in Qlik Sense Cloud?</title>
      <link>https://community.qlik.com/t5/App-Development/Date-format-in-script-not-working-in-Qlik-Sense-Cloud/m-p/2115541#M91031</link>
      <description>&lt;P&gt;Hi Jonas,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could it be that the source of the script you mention is a QVD (so that you have a multi layer system)?&lt;/P&gt;
&lt;P&gt;I had the same issue, and found that if in all loading scripts from the source to final App (QVF) we set the system variable&amp;nbsp;&lt;SPAN&gt;DateFormat='YYYY-MM-DD', then it behaved as expected.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="page" title="Page 1"&gt;
&lt;DIV class="section"&gt;
&lt;DIV class="layoutArea"&gt;
&lt;DIV class="column"&gt;
&lt;P&gt;Some context: we have several layers of Qlik apps, the first reads the source and saves the result as QVD, then a second layer does the data preparation (incl. rename into business friendly names etc.) to ensure an integrated semantic layer, and the last layer is the business application.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Sébastien&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Sep 2023 13:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-format-in-script-not-working-in-Qlik-Sense-Cloud/m-p/2115541#M91031</guid>
      <dc:creator>SNouguier</dc:creator>
      <dc:date>2023-09-11T13:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in script not working in Qlik Sense Cloud?</title>
      <link>https://community.qlik.com/t5/App-Development/Date-format-in-script-not-working-in-Qlik-Sense-Cloud/m-p/2116019#M91060</link>
      <description>&lt;P&gt;Yes it is multilayered indeed.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Interesting that the date format variable could be the issue here.&lt;/P&gt;
&lt;P&gt;Have not been able to test if it solves the issue but &amp;nbsp;I will keep it in mind if I ever encounter this again.&lt;/P&gt;
&lt;P&gt;Thank you for the input and hopefully others might find it helpful as well.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 12:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-format-in-script-not-working-in-Qlik-Sense-Cloud/m-p/2116019#M91060</guid>
      <dc:creator>jonashertz</dc:creator>
      <dc:date>2023-09-12T12:54:28Z</dc:date>
    </item>
  </channel>
</rss>

