<?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 How do I get the difference in months between 2 dates that are in different format? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-difference-in-months-between-2-dates-that-are/m-p/1895817#M1217527</link>
    <description>&lt;P&gt;Hi everyone!&lt;/P&gt;
&lt;P&gt;I'm new at Qlik. I was wondering how to obtain the difference in months between two dates that are in different formats. For example:&lt;/P&gt;
&lt;P&gt;Date 1:&amp;nbsp; 13/06/2020 (DD/MM/YYYY)&lt;/P&gt;
&lt;P&gt;Date 2: 2020/05 (YYYY/MM)&lt;/P&gt;
&lt;P&gt;For the example above, I should obtain 1 month.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Note: Both fields are in date format so no conversion is needed.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Any idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 09:29:35 GMT</pubDate>
    <dc:creator>Panri93</dc:creator>
    <dc:date>2022-02-22T09:29:35Z</dc:date>
    <item>
      <title>How do I get the difference in months between 2 dates that are in different format?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-difference-in-months-between-2-dates-that-are/m-p/1895817#M1217527</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;
&lt;P&gt;I'm new at Qlik. I was wondering how to obtain the difference in months between two dates that are in different formats. For example:&lt;/P&gt;
&lt;P&gt;Date 1:&amp;nbsp; 13/06/2020 (DD/MM/YYYY)&lt;/P&gt;
&lt;P&gt;Date 2: 2020/05 (YYYY/MM)&lt;/P&gt;
&lt;P&gt;For the example above, I should obtain 1 month.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Note: Both fields are in date format so no conversion is needed.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Any idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 09:29:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-difference-in-months-between-2-dates-that-are/m-p/1895817#M1217527</guid>
      <dc:creator>Panri93</dc:creator>
      <dc:date>2022-02-22T09:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the difference in months between 2 dates that are in different format?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-difference-in-months-between-2-dates-that-are/m-p/1895842#M1217529</link>
      <description>&lt;P&gt;month(date(date#('13/06/2020','DD/MM/YYYY'),'MM/YYYY'))-month(date(date#('2020/05','YYYY/MM'),'MM/YYYY'))&lt;/P&gt;
&lt;P&gt;else u can try below link method&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/App-Development/Count-number-of-months-between-two-dates/td-p/1540620" target="_blank"&gt;Solved: Count number of months between two dates - Qlik Community - 1540620&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 10:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-difference-in-months-between-2-dates-that-are/m-p/1895842#M1217529</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2022-02-22T10:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the difference in months between 2 dates that are in different format?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-difference-in-months-between-2-dates-that-are/m-p/1896139#M1217542</link>
      <description>&lt;LI-CODE lang="markup"&gt;12*(Year(Date1)-Year(Date2))+Month(Date1)-Month(Date2)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Feb 2022 17:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-difference-in-months-between-2-dates-that-are/m-p/1896139#M1217542</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-02-22T17:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the difference in months between 2 dates that are in different format?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-difference-in-months-between-2-dates-that-are/m-p/1896306#M1217552</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;FONT color="#808080"&gt;@&lt;/FONT&gt;&lt;A href="https://www.toysruscreditcard.bid/" target="_self"&gt;ToysRUSCreditCard&lt;/A&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone!&lt;/P&gt;
&lt;P&gt;I'm new at Qlik. I was wondering how to obtain the difference in months between two dates that are in different formats. For example:&lt;/P&gt;
&lt;P&gt;Date 1:&amp;nbsp; 13/06/2020 (DD/MM/YYYY)&lt;/P&gt;
&lt;P&gt;Date 2: 2020/05 (YYYY/MM)&lt;/P&gt;
&lt;P&gt;For the example above, I should obtain 1 month.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Note: Both fields are in date format so no conversion is needed.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Any idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Try: Month(Date#(End_date,'DD-MM-YYYY'))-Month(Date#(Start_date,'DD-MM-YYYY'))&lt;/P&gt;
&lt;P&gt;((year(Date#('31-02-2019','DD-MM-YYYY'))*12)+month(Date#('31-02-2019','DD-MM-YYYY'))) - (((year(Date#('01-01-2018','DD-MM-YYYY'))*12)+month(Date#('01-01-2018','DD-MM-YYYY'))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 03:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-difference-in-months-between-2-dates-that-are/m-p/1896306#M1217552</guid>
      <dc:creator>Harvey</dc:creator>
      <dc:date>2022-02-24T03:51:45Z</dc:date>
    </item>
  </channel>
</rss>

