<?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: Converting a String Timestamp to Date and Time fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Converting-a-String-Timestamp-to-Date-and-Time-fields/m-p/1587445#M740368</link>
    <description>&lt;P&gt;Be careful of using date formatting alone. the Date(Date#())&amp;nbsp; construct does not remove the time component from the date values, it simply hides them, so you can still get multiple distinct values of a single date. You need to explicitly remove the time component like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Date(Floor(Timestamp#(postdateofposition, 'MMM D YYYY h:mmtt')), 'YYYY/MM/DD')
=Time(Frac(Timestamp#(postdateofposition, 'MMM D YYYY h:mmtt')), 'HH:MM:SS')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2019 06:07:36 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2019-06-03T06:07:36Z</dc:date>
    <item>
      <title>Converting a String Timestamp to Date and Time fields</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-String-Timestamp-to-Date-and-Time-fields/m-p/1585277#M740364</link>
      <description>&lt;P&gt;my dates come in as "Apr 1 2008 12:00AM" and i am trying to get the date and time separate from each other.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried using 'subfield' and a date# function, but when the date changes to "Apr 31 2008 1:00AM", the character spaces and placement changes and it returns incorrect dates.&lt;/P&gt;&lt;P&gt;Goal is to get the date into 'YYYY-MM-DD' format, and the time into 'HH:MM:SS' format, as new fields, separated from each other.&lt;/P&gt;&lt;P&gt;let me know what i am missing. thanks!&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 263px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12744i1F5E6068B99D5FDC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-String-Timestamp-to-Date-and-Time-fields/m-p/1585277#M740364</guid>
      <dc:creator>triekong</dc:creator>
      <dc:date>2024-11-16T20:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a String Timestamp to Date and Time fields</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-String-Timestamp-to-Date-and-Time-fields/m-p/1585354#M740365</link>
      <description>&lt;P&gt;this expression shows data and time in textbox&lt;BR /&gt;=date(date#('Apr 1 2008 12:00AM','MMM dd YYYY hh:mmTT'))&lt;BR /&gt;&amp;amp; '-' &amp;amp; time(date#('Apr 1 2008 12:00AM','MMM dd YYYY hh:mmTT'))&lt;/P&gt;&lt;P&gt;maybe you can take the relevant part for your desired expression&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 06:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-String-Timestamp-to-Date-and-Time-fields/m-p/1585354#M740365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-28T06:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a String Timestamp to Date and Time fields</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-String-Timestamp-to-Date-and-Time-fields/m-p/1587435#M740366</link>
      <description>&lt;P&gt;@Anonymous thanks for the solution. it does not work when inputted the field name as compared to a typed up date. i tried using the chr(39) to get the quotation marks in but that did not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;i have attached a sample. thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 05:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-String-Timestamp-to-Date-and-Time-fields/m-p/1587435#M740366</guid>
      <dc:creator>triekong</dc:creator>
      <dc:date>2019-06-03T05:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a String Timestamp to Date and Time fields</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-String-Timestamp-to-Date-and-Time-fields/m-p/1587443#M740367</link>
      <description>&lt;P&gt;I suggest you reading about Interpretation function Date# and about Formatting functions Date, Time:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/InterpretationFunctions/date_hash.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/InterpretationFunctions/date_hash.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/FormattingFunctions/Date.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/FormattingFunctions/Date.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/FormattingFunctions/Time.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/FormattingFunctions/Time.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There are the result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_2.jpg" style="width: 766px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13054iB7AA387506AE7350/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_2.jpg" alt="Screenshot_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 05:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-String-Timestamp-to-Date-and-Time-fields/m-p/1587443#M740367</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2019-06-03T05:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a String Timestamp to Date and Time fields</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-String-Timestamp-to-Date-and-Time-fields/m-p/1587445#M740368</link>
      <description>&lt;P&gt;Be careful of using date formatting alone. the Date(Date#())&amp;nbsp; construct does not remove the time component from the date values, it simply hides them, so you can still get multiple distinct values of a single date. You need to explicitly remove the time component like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Date(Floor(Timestamp#(postdateofposition, 'MMM D YYYY h:mmtt')), 'YYYY/MM/DD')
=Time(Frac(Timestamp#(postdateofposition, 'MMM D YYYY h:mmtt')), 'HH:MM:SS')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 06:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-String-Timestamp-to-Date-and-Time-fields/m-p/1587445#M740368</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-06-03T06:07:36Z</dc:date>
    </item>
  </channel>
</rss>

