<?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: Difference between dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-dates/m-p/537507#M1144891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Expression : &lt;STRONG&gt; =Day(Monthend(Today())) - Day(Today())&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; should work fine(working fine for me). Try that in a&amp;nbsp; text object. May be you are having issue somewhere else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Aug 2013 04:22:04 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-08-28T04:22:04Z</dc:date>
    <item>
      <title>Difference between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates/m-p/537505#M1144887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It must be very simple but I cannot get the result I am looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I calculate a difference between dates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And why this expression :&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff;"&gt;Day(Monthend(Today())) - Day(Today())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns nothing (error)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt; Day(Monthend(Today())) &lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp; correctly returns&amp;nbsp; 31 which is an integer (for this month)&lt;/P&gt;&lt;P&gt;and the expression &lt;STRONG style=": ; color: #0000ff;"&gt;Day(Today())&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; correctly returns 27 which is an integer (for today 7/27/13)&lt;/P&gt;&lt;P&gt;But subtracting one from the other returns nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to convert them to numerical value &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Num(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;Day(Today()),'###') &lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;and &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Num(&lt;STRONG style="color: #0000ff;"&gt;Day(Monthend(Today())) &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;,'###') &lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;but that did not work either.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 21:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates/m-p/537505#M1144887</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2013-08-27T21:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates/m-p/537506#M1144889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Josh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure you try this yet:&lt;/P&gt;&lt;P&gt;Interval(Monthend(Today()) - Today(),'d') or Floor(Monthend(Today()) - Today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 03:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates/m-p/537506#M1144889</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-08-28T03:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates/m-p/537507#M1144891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Expression : &lt;STRONG&gt; =Day(Monthend(Today())) - Day(Today())&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; should work fine(working fine for me). Try that in a&amp;nbsp; text object. May be you are having issue somewhere else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 04:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates/m-p/537507#M1144891</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-28T04:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates/m-p/537508#M1144893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Josh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above expression will work both in Script and Text Object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let V1 = Today();&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;V2= Day(Monthend(Today())) - Day(Today())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Now V2 will result in 3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Could you please reply more where and how you want to calculate so that we can help?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 04:28:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates/m-p/537508#M1144893</guid>
      <dc:creator>dmohanty</dc:creator>
      <dc:date>2013-08-28T04:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-dates/m-p/537509#M1144895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sokkorn.&lt;/P&gt;&lt;P&gt;I am not sure if these are the only answers but&amp;nbsp; your answers (both) returned the right result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must say though that after trying some more and enclosing the expression within parenthesis, it did work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff;"&gt;Day(Monthend(Today())) - Day(Today())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;does not work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff;"&gt;( Day(Monthend(Today())) - Day(Today()) )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peculiar!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again , thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 15:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-dates/m-p/537509#M1144895</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2013-08-28T15:50:47Z</dc:date>
    </item>
  </channel>
</rss>

