<?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: Convert string YYYYMMDD to MM/DD/YYYY and string hhmmss to HH hours only and combine both to one field in script. Please help. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-string-YYYYMMDD-to-MM-DD-YYYY-and-string-hhmmss-to-HH/m-p/9256#M768637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I filter data to be refreshed everyday, within the script since the field PRDCR (YYYYMMDD) is a string, I would like to automatically filter the data with today's date (today()). How do I do this within the SQL script and not under load, as there is huge amount of data to load if implemented under load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2018 15:18:06 GMT</pubDate>
    <dc:creator>haneeshmarella</dc:creator>
    <dc:date>2018-06-11T15:18:06Z</dc:date>
    <item>
      <title>Convert string YYYYMMDD to MM/DD/YYYY and string hhmmss to HH hours only and combine both to one field in script. Please help.</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-string-YYYYMMDD-to-MM-DD-YYYY-and-string-hhmmss-to-HH/m-p/9254#M768635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have two dimensions i.e Date and Time in &lt;STRONG&gt;string&lt;/STRONG&gt; formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date field is PRDCR in string format of YYYYMMDD&lt;/P&gt;&lt;P&gt;Time field is PRTCR in string format of hhmmss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to convert PRDCR to MM/DD/YYYY and PRTCR to HH (hours only) format and combine both fields as a new timestamp field in the form of MM/DD/YYYY HH (ex. 06/11/2018 22) where 22 is 10 PM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me on how to do so. I did the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRDCR --&amp;gt; Date(Date#("PRDCR ",'YYYYMMDD'),'MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;PRTCR --&amp;gt; (Time(Time#("PRTCR ",'hhmmss'),'HH')&amp;amp;':00') --&amp;gt; &lt;STRONG&gt;I feel this is wrong because it gives me two rows 00:00 and :00 which is not right.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-string-YYYYMMDD-to-MM-DD-YYYY-and-string-hhmmss-to-HH/m-p/9254#M768635</guid>
      <dc:creator>haneeshmarella</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string YYYYMMDD to MM/DD/YYYY and string hhmmss to HH hours only and combine both to one field in script. Please help.</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-string-YYYYMMDD-to-MM-DD-YYYY-and-string-hhmmss-to-HH/m-p/9255#M768636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TimeStamp(TimeStamp#(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;PRDCR&amp;amp;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;PRTCR, 'YYYYMMDDhhmmss'), 'MM/DD/YYYY hh') as FieldName&lt;/STRONG&gt;&lt;/SPAN&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;STRONG&gt;TimeStamp(Floor(TimeStamp#(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;PRDCR&amp;amp;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;PRTCR, 'YYYYMMDDhhmmss'), 1/24), 'MM/DD/YYYY hh') as FieldName&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 15:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-string-YYYYMMDD-to-MM-DD-YYYY-and-string-hhmmss-to-HH/m-p/9255#M768636</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-11T15:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string YYYYMMDD to MM/DD/YYYY and string hhmmss to HH hours only and combine both to one field in script. Please help.</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-string-YYYYMMDD-to-MM-DD-YYYY-and-string-hhmmss-to-HH/m-p/9256#M768637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I filter data to be refreshed everyday, within the script since the field PRDCR (YYYYMMDD) is a string, I would like to automatically filter the data with today's date (today()). How do I do this within the SQL script and not under load, as there is huge amount of data to load if implemented under load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 15:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-string-YYYYMMDD-to-MM-DD-YYYY-and-string-hhmmss-to-HH/m-p/9256#M768637</guid>
      <dc:creator>haneeshmarella</dc:creator>
      <dc:date>2018-06-11T15:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string YYYYMMDD to MM/DD/YYYY and string hhmmss to HH hours only and combine both to one field in script. Please help.</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-string-YYYYMMDD-to-MM-DD-YYYY-and-string-hhmmss-to-HH/m-p/9257#M768638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a where clause in your SQL query to restrict the data. This might be something that a dba might be able to help you better as databases can vary on how this can be structured... for example, in ORACLE I would do something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE To_Date(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;PRDCR, 'YYYYMMDD') = SYSDATE;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 15:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-string-YYYYMMDD-to-MM-DD-YYYY-and-string-hhmmss-to-HH/m-p/9257#M768638</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-11T15:24:10Z</dc:date>
    </item>
  </channel>
</rss>

