<?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: Dates not being formatted in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dates-not-being-formatted/m-p/2535832#M108573</link>
    <description>&lt;P&gt;I’d look at two things. First, there might be trailing spaces or invisible characters in the source data. Try cleaning it like this:&lt;/P&gt;&lt;P&gt;Date(Date#(Trim([input_date]), 'YYYY-MM-DD'), 'YYYY-MM-DD') as [output_date]&lt;/P&gt;&lt;P&gt;Second, make sure your global date format matches the data by setting:&lt;/P&gt;&lt;P&gt;SET DateFormat='YYYY-MM-DD';&lt;/P&gt;</description>
    <pubDate>Tue, 11 Nov 2025 07:34:58 GMT</pubDate>
    <dc:creator>BrunPierre</dc:creator>
    <dc:date>2025-11-11T07:34:58Z</dc:date>
    <item>
      <title>Dates not being formatted</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-not-being-formatted/m-p/2535809#M108568</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a table of strings of the following format:&lt;/P&gt;&lt;P&gt;'2017-05-16'&lt;/P&gt;&lt;P&gt;'2018-04-27'&lt;/P&gt;&lt;P&gt;I need to convert them to real date values.&amp;nbsp;When I use &lt;STRONG&gt;date#([input_date],'YYYY-MM-DD')&amp;nbsp; as [output_date]&lt;/STRONG&gt;, they appear in my Table objects as numbers:&lt;/P&gt;&lt;P&gt;42871&lt;/P&gt;&lt;P&gt;43217&lt;/P&gt;&lt;P&gt;When I try to re-format them with &lt;STRONG&gt;date(date#([input_date],'YYYY-MM-DD'),'YYYY-MM-DD') as [output_date]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;they appear in my Table object as question marks:&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;Yes, I can fix this by putting &lt;STRONG&gt;date([output_date],'YYYY-MM-DD')&lt;/STRONG&gt; in my Table columns, but why should I have to? The use of &lt;STRONG&gt;date#()&lt;/STRONG&gt; or &lt;STRONG&gt;date(date#())&lt;/STRONG&gt;&amp;nbsp;as above &lt;EM&gt;should&lt;/EM&gt; accomplish what I need without adding &lt;STRONG&gt;date()&lt;/STRONG&gt; to &lt;EM&gt;every&lt;/EM&gt; column in my Tables. Am I doing something wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 21:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-not-being-formatted/m-p/2535809#M108568</guid>
      <dc:creator>stascher</dc:creator>
      <dc:date>2025-11-10T21:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dates not being formatted</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-not-being-formatted/m-p/2535817#M108569</link>
      <description>&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;Date(Date#(PurgeChar([input_date],' '),'YYYY-MM-DD'),'YYYY-MM-DD') as [output_date]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 04:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-not-being-formatted/m-p/2535817#M108569</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2025-11-11T04:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dates not being formatted</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-not-being-formatted/m-p/2535832#M108573</link>
      <description>&lt;P&gt;I’d look at two things. First, there might be trailing spaces or invisible characters in the source data. Try cleaning it like this:&lt;/P&gt;&lt;P&gt;Date(Date#(Trim([input_date]), 'YYYY-MM-DD'), 'YYYY-MM-DD') as [output_date]&lt;/P&gt;&lt;P&gt;Second, make sure your global date format matches the data by setting:&lt;/P&gt;&lt;P&gt;SET DateFormat='YYYY-MM-DD';&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 07:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-not-being-formatted/m-p/2535832#M108573</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2025-11-11T07:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dates not being formatted</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-not-being-formatted/m-p/2535956#M108596</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/39296"&gt;@stascher&lt;/a&gt;&amp;nbsp; ,&lt;/P&gt;
&lt;P&gt;I've encountered similar issues when working with date fields—especially when trailing spaces or invisible characters in the source data cause unexpected behavior, as&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/16737"&gt;@BrunPierre&lt;/a&gt;&amp;nbsp; also pointed out.&lt;/P&gt;
&lt;P&gt;To resolve this, it's best to apply trimming&amp;nbsp; or with&amp;nbsp;&lt;SPAN&gt;PurgeChar and&lt;/SPAN&gt; enforce the required format explicitly:&lt;/P&gt;
&lt;DIV&gt;date(Date#(Trim([input_date]), 'YYYY-MM-DD'), 'YYYY-MM-DD')&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 06:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-not-being-formatted/m-p/2535956#M108596</guid>
      <dc:creator>Amit_Prajapati</dc:creator>
      <dc:date>2025-11-12T06:46:13Z</dc:date>
    </item>
  </channel>
</rss>

