<?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: how to remove timestamp from monthend function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728884#M1081613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Today() returns an integer, so the floor() would not be required for it. Rather try like:&lt;/P&gt;&lt;P&gt;Floor(expiry_date) - today()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But again if you divide the returned integer by 365, you might not get an integer. I could not understand the logic of expecting output 12:00:00.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2014 05:00:09 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-07-08T05:00:09Z</dc:date>
    <item>
      <title>how to remove timestamp from monthend function?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728876#M1081605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Please an some one help me out with the below issue??&lt;/P&gt;&lt;P&gt;In my script I have a row as below:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Monthend(Month)&amp;nbsp;&amp;nbsp; as expiry_date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;the&amp;nbsp; expiry date resultant is presently as &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG style="color: #ff0000;"&gt;31/1/2016 11:59:59 PM&lt;/STRONG&gt; but I want to remove the time stamp from the same in the script level or make the timestamp 0,so that my out put comes after reloading as only &lt;STRONG style="color: #ff0000;"&gt;31/1/2016&lt;/STRONG&gt;.How is this possible?? please can someone help me??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sahana&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 02:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728876#M1081605</guid>
      <dc:creator />
      <dc:date>2014-07-08T02:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove timestamp from monthend function?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728877#M1081606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sahana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try: &lt;STRONG&gt;Da&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;te(Floor(Month),'DD/MM/YYYY') As &lt;/STRONG&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;expiry_date.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at &lt;A href="https://community.qlik.com/docs/DOC-2811"&gt;Primer for QlikView Date fields&lt;/A&gt; for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 02:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728877#M1081606</guid>
      <dc:creator>nilo_pontes</dc:creator>
      <dc:date>2014-07-08T02:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove timestamp from monthend function?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728878#M1081607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Floor(MonthEnd(Month))) as Expiry_Date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 02:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728878#M1081607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-08T02:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove timestamp from monthend function?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728879#M1081608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;Date(Monthend(Month))&amp;nbsp;&amp;nbsp; as expiry_date,&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 02:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728879#M1081608</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-07-08T02:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove timestamp from monthend function?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728880#M1081609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sahana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(MonthEnd(Month))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Date(MonthEnd(Month), 'M/D/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Floor(MonthEnd(Month)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 04:04:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728880#M1081609</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-07-08T04:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: how to remove timestamp from monthend function?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728881#M1081610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi thanks a lot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;how can I do the same foe &lt;STRONG&gt;today()&lt;/STRONG&gt; function in &lt;STRONG&gt;chart level.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried this:&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;expiry_date-Date(Floor(&lt;SPAN style="color: #339966;"&gt;today()&lt;/SPAN&gt;)))&lt;/STRONG&gt;&lt;/SPAN&gt; it works ,but when I do&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;(expiry_date-Date(Floor(today()))))/365&lt;/STRONG&gt;&lt;/SPAN&gt; it doesn't work... the time stamp doesn't become 12:00:00am&lt;/P&gt;&lt;P&gt;Please can you help me??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 04:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728881#M1081610</guid>
      <dc:creator />
      <dc:date>2014-07-08T04:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re: how to remove timestamp from monthend function?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728882#M1081611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000; background-color: #f6f6f6;"&gt;Date(expiry_date)-Date(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #339966;"&gt;today()&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 04:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728882#M1081611</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-07-08T04:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Re: how to remove timestamp from monthend function?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728883#M1081612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or you can try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;age(&lt;STRONG style="font-size: 12.222222328186035px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000; background-color: #f6f6f6;"&gt;expiry_date,&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #339966;"&gt;today()&lt;/SPAN&gt;&lt;/STRONG&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 04:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728883#M1081612</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-07-08T04:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove timestamp from monthend function?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728884#M1081613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Today() returns an integer, so the floor() would not be required for it. Rather try like:&lt;/P&gt;&lt;P&gt;Floor(expiry_date) - today()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But again if you divide the returned integer by 365, you might not get an integer. I could not understand the logic of expecting output 12:00:00.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 05:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728884#M1081613</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-07-08T05:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re: how to remove timestamp from monthend function?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728885#M1081614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Da&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;te(Floor(Month),'DD/MM/YYYY') As &lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; color: #ff0000;"&gt;expiry_date&amp;nbsp; // If you need the DD/MM/YYY formats&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 05:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728885#M1081614</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-07-08T05:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re: how to remove timestamp from monthend function?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728886#M1081615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for all your valuable responses.:)&lt;/P&gt;&lt;P&gt;ok... actually the reason behind getting time stamp &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;12:00:00.&lt;/SPAN&gt; is because we are calculating values without considering the time stamps of date fields,but from today() function which is used it wasn't working so the question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 05:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728886#M1081615</guid>
      <dc:creator />
      <dc:date>2014-07-08T05:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove timestamp from monthend function?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728887#M1081616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your expiry_date has a value like: 31/1/2016 11:59:59 PM you can truncate the fractional part using floor() like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Floor(expiry_date) as ExpiryDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the front-end you are having an integer 42400 equivalent to the date 31/1/2016. If you divide this date difference from today() which is equivalent to 41828 it becomes -&lt;/P&gt;&lt;P&gt;(42400-41828)/365&lt;/P&gt;&lt;P&gt;=572/365&lt;/P&gt;&lt;P&gt;=1.56&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you use timestamp() on it, you can't expect a 00:00 because of the fractional part of your result. And here it is clear that - that is not because of today(), but because of simple math - division by 365.&amp;nbsp; Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 05:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-timestamp-from-monthend-function/m-p/728887#M1081616</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-07-08T05:26:53Z</dc:date>
    </item>
  </channel>
</rss>

