<?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: Date exporting to excel in a timestamp? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-exporting-to-excel-in-a-timestamp/m-p/13012#M2139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem was MonthEnd function which is usually a timestamp to the last second for the day... for example, MonthEnd(Today()) will be 02/28/2018 23:59:59. In order to change that into just the date, we use Floor() function. The function with DayName would look like this (Basically, remove the formatting) &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Max(DayName(MonthEnd(CalendarDate)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Feb 2018 15:28:03 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-02-26T15:28:03Z</dc:date>
    <item>
      <title>Date exporting to excel in a timestamp?</title>
      <link>https://community.qlik.com/t5/QlikView/Date-exporting-to-excel-in-a-timestamp/m-p/13009#M2136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report I put together that doesn't have a time stamp in the data, but when I export it to excel the timestamp defaults to midnight and the date displays as the following day.&amp;nbsp; i.e. 1/31/2018 as 2/1/2018.&amp;nbsp; If i click the cell the timestamp goes away and the date displays as 1/31/2018.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm formatting my date as the following to get the last day of the month, i even tried to force the MM/DD/YYYY and nothing seems to work.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the expression for the last day of the month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX(Date(MonthEnd(Date(CalendarDate)),'MM/DD/YYYY')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 15:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-exporting-to-excel-in-a-timestamp/m-p/13009#M2136</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2018-02-26T15:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Date exporting to excel in a timestamp?</title>
      <link>https://community.qlik.com/t5/QlikView/Date-exporting-to-excel-in-a-timestamp/m-p/13010#M2137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Max(Date(Floor(MonthEnd(CalendarDate)), 'MM/DD/YYYY'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Max(DayName(MonthEnd(CalendarDate), 'MM/DD/YYYY'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 15:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-exporting-to-excel-in-a-timestamp/m-p/13010#M2137</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-26T15:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Date exporting to excel in a timestamp?</title>
      <link>https://community.qlik.com/t5/QlikView/Date-exporting-to-excel-in-a-timestamp/m-p/13011#M2138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding Floor worked, the DayName broke the function.&amp;nbsp; Thanks for the quick response Sunny.&amp;nbsp; I didn't know you could add Floor to a date.&amp;nbsp; Great learning experience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 15:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-exporting-to-excel-in-a-timestamp/m-p/13011#M2138</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2018-02-26T15:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Date exporting to excel in a timestamp?</title>
      <link>https://community.qlik.com/t5/QlikView/Date-exporting-to-excel-in-a-timestamp/m-p/13012#M2139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem was MonthEnd function which is usually a timestamp to the last second for the day... for example, MonthEnd(Today()) will be 02/28/2018 23:59:59. In order to change that into just the date, we use Floor() function. The function with DayName would look like this (Basically, remove the formatting) &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Max(DayName(MonthEnd(CalendarDate)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 15:28:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-exporting-to-excel-in-a-timestamp/m-p/13012#M2139</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-26T15:28:03Z</dc:date>
    </item>
  </channel>
</rss>

