<?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 Convert date range text to Date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Convert-date-range-text-to-Date/m-p/1967940#M79790</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need assistance, hoping to find a solution.&lt;/P&gt;
&lt;P&gt;I would like to convert the below to text into a date format, that way I can be able to create a variable using the max function.&lt;BR /&gt;&lt;BR /&gt;Text to convert = "2022-07-31 - 2022-08-06"&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2022 19:09:04 GMT</pubDate>
    <dc:creator>skzwane01</dc:creator>
    <dc:date>2022-08-11T19:09:04Z</dc:date>
    <item>
      <title>Convert date range text to Date</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-date-range-text-to-Date/m-p/1967940#M79790</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need assistance, hoping to find a solution.&lt;/P&gt;
&lt;P&gt;I would like to convert the below to text into a date format, that way I can be able to create a variable using the max function.&lt;BR /&gt;&lt;BR /&gt;Text to convert = "2022-07-31 - 2022-08-06"&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 19:09:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-date-range-text-to-Date/m-p/1967940#M79790</guid>
      <dc:creator>skzwane01</dc:creator>
      <dc:date>2022-08-11T19:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert date range text to Date</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-date-range-text-to-Date/m-p/1967952#M79791</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If the quotes are not part of the string, and the string character count is always the same, I would simply create two separate fields like below:&lt;/P&gt;
&lt;P&gt;Temp:&lt;BR /&gt;Load&lt;BR /&gt;Left(Text,10) as Text1,&lt;BR /&gt;Right(Text,10) as Text2&lt;BR /&gt;From DataSource;&lt;/P&gt;
&lt;P&gt;Final:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load&lt;BR /&gt;MakeDate(Left(Text1,4),Mid(Text1,6,2),Right(Text1,2)) as Date1,&lt;BR /&gt;MakeDate(Left(Text2,4),Mid(Text2,6,2),Right(Text2,2)) as Date2&lt;BR /&gt;Resident Temp;&lt;/P&gt;
&lt;P&gt;Drop Table Temp;&lt;/P&gt;
&lt;P&gt;If the quotes are part of the string use PurgeChar to drop them first. Also, if the strings are not always the same character count, use Subfield to separate the date text.&lt;/P&gt;
&lt;P&gt;I hope it helps.&lt;/P&gt;
&lt;P&gt;Luiz&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 20:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-date-range-text-to-Date/m-p/1967952#M79791</guid>
      <dc:creator>luizcdepaula</dc:creator>
      <dc:date>2022-08-11T20:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Convert date range text to Date</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-date-range-text-to-Date/m-p/1967956#M79792</link>
      <description>&lt;P&gt;See attached!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 20:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-date-range-text-to-Date/m-p/1967956#M79792</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-08-11T20:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Convert date range text to Date</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-date-range-text-to-Date/m-p/1968013#M79803</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18495"&gt;@skzwane01&lt;/a&gt;&amp;nbsp;Please see the below script that i have used in the back end:&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Temp:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Date&lt;BR /&gt;2022-07-31 - 2022-08-06&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Temp1:&lt;BR /&gt;Load Date(MakeDate(Left(Date1,4), mid(Date1,6,2), right(Date1,2)),'MM/DD/YYYY') as Date1,&lt;BR /&gt;Date(MakeDate(Left(Date2,4), mid(Date2,6,2), right(Date2,2)),'MM/DD/YYYY') as Date2;&lt;/P&gt;
&lt;P&gt;Load *,&lt;BR /&gt;subfield(Date,' ',1) as Date1,&lt;BR /&gt;Right(Date,10) as Date2&lt;BR /&gt;Resident Temp;&lt;BR /&gt;&lt;BR /&gt;Drop table Temp;&lt;/P&gt;
&lt;P&gt;Exit Script;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 02:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-date-range-text-to-Date/m-p/1968013#M79803</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2022-08-12T02:55:18Z</dc:date>
    </item>
  </channel>
</rss>

