<?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: compare date with monthdate in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794385#M62227</link>
    <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;if( Month( '3/15/2021') &amp;lt;= Month('6/22/2020') , 'Y','N')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Mar 2021 11:20:53 GMT</pubDate>
    <dc:creator>deshikas</dc:creator>
    <dc:date>2021-03-25T11:20:53Z</dc:date>
    <item>
      <title>compare date with monthdate</title>
      <link>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794376#M62224</link>
      <description>&lt;P&gt;If i have two dates : 3/15/2021 and 6/22/2020, I just want to compare their value by Month date MMDD. This means i just compare 3/15 and 6/22 . Therefore i can get 6/22 is greater than 3/15 using a if statement.&lt;/P&gt;&lt;P&gt;I tried if( date( '3/15/2021', MMDD') &amp;lt;= date('6/22/2020','MMDD') , Y,N)&amp;nbsp; , system return N which is wrong because 6/22 is greater than 3/15 and should return Y . Can anyone help me out?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794376#M62224</guid>
      <dc:creator>alanwong1178</dc:creator>
      <dc:date>2024-11-16T00:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: compare date with monthdate</title>
      <link>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794377#M62225</link>
      <description>&lt;P&gt;I'm not quite sure what you're trying to do - it sounds like you're just trying to compare the day of month, perhaps? If(Day(Date1) &amp;lt;= Day(Date2),'Y','N') in that case.&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Re-reading, I think you're just trying to remove the year aspect from the date, in which case the above wouldn't be correct, obviously. Instead:&lt;/P&gt;&lt;P&gt;If(MakeDate(2004,Month(Date1),Day(Date1))&amp;lt;=MakeDate(2004,Month(Date2),Day(Date2),'Y','N')&lt;/P&gt;&lt;P&gt;Note that the 2004 is arbitrary and any year figure could be used, but it should be a leap year to ensure February 29th exists.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 12:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794377#M62225</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-03-25T12:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: compare date with monthdate</title>
      <link>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794385#M62227</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;if( Month( '3/15/2021') &amp;lt;= Month('6/22/2020') , 'Y','N')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 11:20:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794385#M62227</guid>
      <dc:creator>deshikas</dc:creator>
      <dc:date>2021-03-25T11:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: compare date with monthdate</title>
      <link>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794410#M62231</link>
      <description>&lt;P&gt;If you want to compare on date level you can use DayNumberOfYear() for your comparisons. This function will return the day number of the year for the given date, a number between 1 and 366.&lt;/P&gt;&lt;P&gt;If(&amp;nbsp;&lt;SPAN&gt;DayNumberOfYear('3/15/2021') &amp;lt;= DayNumberOfYear('6/22/2021' ), 'Y', 'N')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 12:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794410#M62231</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-03-25T12:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: compare date with monthdate</title>
      <link>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794415#M62232</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/136138"&gt;@alanwong1178&lt;/a&gt;&amp;nbsp;, i found these in community :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/How-Do-I-Get-the-Number-of-Months-Between-Two-Dates/td-p/296928" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/How-Do-I-Get-the-Number-of-Months-Between-Two-Dates/td-p/296928&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/Difference-in-Month/td-p/1347417" target="_blank"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/Difference-in-Month/td-p/1347417&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 12:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794415#M62232</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2021-03-25T12:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: compare date with monthdate</title>
      <link>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794422#M62233</link>
      <description>&lt;P&gt;I avoided that one because it can be tricky with leap years (February 29th is the same day of the year as March 1st in a non-leap-year I believe, but it's a smaller date)&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 12:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794422#M62233</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-03-25T12:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: compare date with monthdate</title>
      <link>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794436#M62237</link>
      <description>&lt;P&gt;=if(num#(date(date#( '3/15/2021', 'MM/DD/YYYY'),'MMDD'))&amp;lt;= num#(date(date#('6/22/2020','MM/DD/YYYY'),'MMDD')) , 'Y','N')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this i got the required o/p as Y. Let me know your requirement meet&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 13:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794436#M62237</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2021-03-25T13:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: compare date with monthdate</title>
      <link>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794454#M62239</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;: you´re right . Handling leap years can be troublesome, depending on how you wamt to do you analysis.&lt;/P&gt;&lt;P&gt;For just the DayNumberOfYear() function March 1 will allways be&amp;nbsp; 61, and&amp;nbsp; February 29 will always be 60. In a non leap year the&amp;nbsp;DayNumberOfYear() will skip from 59 to 61 in the switch between February and March.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 13:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/compare-date-with-monthdate/m-p/1794454#M62239</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-03-25T13:35:02Z</dc:date>
    </item>
  </channel>
</rss>

