<?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: Format timestamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Format-timestamp/m-p/2116025#M1224538</link>
    <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt; Warning. Be cautioninous when using the formating function &lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/FormattingFunctions/Date.htm" target="_self"&gt;date().&lt;/A&gt; It does not convert values into a date value it only formats how the value is displayed.&lt;/P&gt;
&lt;P&gt;Take a look at my example below. Notice how I use date() for the field Date_stamp and the function &lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/DateAndTimeFunctions/dayname.htm" target="_self"&gt;dayname&lt;/A&gt;() for DayName_stamp.&amp;nbsp; And that those are displayed identical in the first table.&amp;nbsp; But using a filter pane/listbox you notice that Date_stamps have three "identical" values and DayName_stamp has only one. This is because Date_stamp still holds the three timestamp values, but it only displays them as a date.&lt;/P&gt;
&lt;P&gt;I would recommend you to use dayname() or put a floor around the value you put into the date function, like this date(floor(...)) in order to get a date value and not only a date presentation.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Vegar_0-1694523371355.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/116122i1B0109301D789C60/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vegar_0-1694523371355.png" alt="Vegar_0-1694523371355.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 13:03:12 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2023-09-12T13:03:12Z</dc:date>
    <item>
      <title>Format timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Format-timestamp/m-p/2115781#M1224533</link>
      <description>&lt;P&gt;Hi, this timestamp:&amp;nbsp;23.08.2023 11:17:42.000&lt;/P&gt;
&lt;P&gt;How to get the date out of it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 06:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-timestamp/m-p/2115781#M1224533</guid>
      <dc:creator>johnan</dc:creator>
      <dc:date>2023-09-12T06:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Format timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Format-timestamp/m-p/2115806#M1224535</link>
      <description>&lt;P&gt;This should give you date in ISO8601 format: Date(Timestamp#('&lt;SPAN&gt;23.08.2023 11:17:42.000', 'DD.MM.YYYY hh:mm:ss.fff'), 'YYYY-MM-DD')&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you just want the date part as a string you could do: left('23.08.2023 11:17:42.000', 10)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 07:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-timestamp/m-p/2115806#M1224535</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2023-09-12T07:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Format timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Format-timestamp/m-p/2115915#M1224537</link>
      <description>&lt;P&gt;&lt;SPAN&gt;23.08.2023 11:17:42.000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;try&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Date(Timestamp#('23.08.2023 11:17:42.000','DD.MM.YYYYY hh:mm:ss.fff'))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 10:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-timestamp/m-p/2115915#M1224537</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2023-09-12T10:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Format timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Format-timestamp/m-p/2116025#M1224538</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt; Warning. Be cautioninous when using the formating function &lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/FormattingFunctions/Date.htm" target="_self"&gt;date().&lt;/A&gt; It does not convert values into a date value it only formats how the value is displayed.&lt;/P&gt;
&lt;P&gt;Take a look at my example below. Notice how I use date() for the field Date_stamp and the function &lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/DateAndTimeFunctions/dayname.htm" target="_self"&gt;dayname&lt;/A&gt;() for DayName_stamp.&amp;nbsp; And that those are displayed identical in the first table.&amp;nbsp; But using a filter pane/listbox you notice that Date_stamps have three "identical" values and DayName_stamp has only one. This is because Date_stamp still holds the three timestamp values, but it only displays them as a date.&lt;/P&gt;
&lt;P&gt;I would recommend you to use dayname() or put a floor around the value you put into the date function, like this date(floor(...)) in order to get a date value and not only a date presentation.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Vegar_0-1694523371355.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/116122i1B0109301D789C60/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vegar_0-1694523371355.png" alt="Vegar_0-1694523371355.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 13:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-timestamp/m-p/2116025#M1224538</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2023-09-12T13:03:12Z</dc:date>
    </item>
  </channel>
</rss>

