<?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 Date Format Issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-Format-Issue/m-p/1905975#M74684</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I'm getting Date Format issue. I've tried all possible methods but not getting the desired format.&lt;/P&gt;
&lt;P&gt;Due to this I'm getting duplicates in Dates. See this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Duplicates Date Format Issue.png" style="width: 702px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74618iC0766A1BEAA45994/image-size/large?v=v2&amp;amp;px=999" role="button" title="Duplicates Date Format Issue.png" alt="Duplicates Date Format Issue.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the code I'm using:&lt;/P&gt;
&lt;P&gt;Table_1:&lt;BR /&gt;LOAD// Date1 AS Date2,&lt;BR /&gt;// Date(Date#(Date1,'DD/MM/YYYY'),'YYYY-MM') AS Date2_1,&lt;BR /&gt;Date(Date1,'YYYY-MM') AS Date11,&lt;BR /&gt;Date(Date1,'YYYY-MM') AS Temp_Date&lt;BR /&gt;FROM&lt;BR /&gt;[..\Date1.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;CONCATENATE(Table_1)&lt;BR /&gt;LOAD &lt;BR /&gt;// Date2 AS Date1,&lt;BR /&gt;Date(Date#(Date2,'YYYY-MM'),'YYYY-MM') AS Date11&lt;BR /&gt;FROM&lt;BR /&gt;[..\Date2.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;
&lt;P&gt;WHERE NOT EXISTS(Temp_Date,Date(Date#(Date2,'YYYY-MM'),'YYYY-MM'));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, when using "Date1" table and modify the "date1" field using Date# function then it is returning blank.&lt;/P&gt;
&lt;P&gt;I'm doing this:&lt;/P&gt;
&lt;P&gt;Date(Date#(Date1,'DD/MM/YYYY'),'YYYY-MM') AS New_1&lt;/P&gt;
&lt;P&gt;This is returning null date.&lt;/P&gt;
&lt;P&gt;Attaching the sample data.&lt;/P&gt;
&lt;P&gt;Please help and tell me the theory behind this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2022 12:26:33 GMT</pubDate>
    <dc:creator>erric3210</dc:creator>
    <dc:date>2022-03-16T12:26:33Z</dc:date>
    <item>
      <title>Date Format Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Date-Format-Issue/m-p/1905975#M74684</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I'm getting Date Format issue. I've tried all possible methods but not getting the desired format.&lt;/P&gt;
&lt;P&gt;Due to this I'm getting duplicates in Dates. See this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Duplicates Date Format Issue.png" style="width: 702px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74618iC0766A1BEAA45994/image-size/large?v=v2&amp;amp;px=999" role="button" title="Duplicates Date Format Issue.png" alt="Duplicates Date Format Issue.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the code I'm using:&lt;/P&gt;
&lt;P&gt;Table_1:&lt;BR /&gt;LOAD// Date1 AS Date2,&lt;BR /&gt;// Date(Date#(Date1,'DD/MM/YYYY'),'YYYY-MM') AS Date2_1,&lt;BR /&gt;Date(Date1,'YYYY-MM') AS Date11,&lt;BR /&gt;Date(Date1,'YYYY-MM') AS Temp_Date&lt;BR /&gt;FROM&lt;BR /&gt;[..\Date1.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;CONCATENATE(Table_1)&lt;BR /&gt;LOAD &lt;BR /&gt;// Date2 AS Date1,&lt;BR /&gt;Date(Date#(Date2,'YYYY-MM'),'YYYY-MM') AS Date11&lt;BR /&gt;FROM&lt;BR /&gt;[..\Date2.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;
&lt;P&gt;WHERE NOT EXISTS(Temp_Date,Date(Date#(Date2,'YYYY-MM'),'YYYY-MM'));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, when using "Date1" table and modify the "date1" field using Date# function then it is returning blank.&lt;/P&gt;
&lt;P&gt;I'm doing this:&lt;/P&gt;
&lt;P&gt;Date(Date#(Date1,'DD/MM/YYYY'),'YYYY-MM') AS New_1&lt;/P&gt;
&lt;P&gt;This is returning null date.&lt;/P&gt;
&lt;P&gt;Attaching the sample data.&lt;/P&gt;
&lt;P&gt;Please help and tell me the theory behind this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 12:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-Format-Issue/m-p/1905975#M74684</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2022-03-16T12:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Date-Format-Issue/m-p/1905995#M74687</link>
      <description>&lt;P&gt;Date() does not change the underlying dates, it just formats the result in a specific manner, so for example July 1st and July 15th formatted as YYYY-MM would both return 2022-07 but have different underlying values. If you'd like to get month-level results, use e.g. MonthName(YourField) or MonthStart(YourField), which would actually change the underlying dates, before formatting as desired.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 12:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-Format-Issue/m-p/1905995#M74687</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-03-16T12:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Date-Format-Issue/m-p/1906954#M74751</link>
      <description>&lt;P&gt;HI,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Have you thought about creating a master calendar?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Creating-A-Master-Calendar/td-p/341286" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Creating-A-Master-Calendar/td-p/341286&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 11:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-Format-Issue/m-p/1906954#M74751</guid>
      <dc:creator>Bill_Britt</dc:creator>
      <dc:date>2022-03-18T11:59:59Z</dc:date>
    </item>
  </channel>
</rss>

