<?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 mixed  text dates to Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-mixed-text-dates-to-Date/m-p/1429566#M430138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Script&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;DateFormat&lt;/EM&gt;&lt;/STRONG&gt;='M/D//YYYY'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Sep 2017 05:22:38 GMT</pubDate>
    <dc:creator>antoniotiman</dc:creator>
    <dc:date>2017-09-18T05:22:38Z</dc:date>
    <item>
      <title>Convert mixed  text dates to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-mixed-text-dates-to-Date/m-p/1429564#M430136</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 need to show rates per day but have come across a stumbling block with the date outputs I am receiving. &lt;/P&gt;&lt;P&gt;The date reads M/D/Y but the lengths between the '/' vary. For example, there can are either 1 or 2 values for the month and the same applies to the date. The only constant is the Year: Currently I am doing the below, but I think there must be a more efficient solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how I could accomplish this will be appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;Load * INLINE [&lt;/P&gt;&lt;P&gt;RowNo, Date, Ex_Rate&lt;/P&gt;&lt;P&gt;1, 9/18/2017, 14 &lt;/P&gt;&lt;P&gt;2, 12/9/2017, 13.5] ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp2:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;RowNo,&lt;/P&gt;&lt;P&gt;If(Index(Date, '/', 1) =2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left(Date,1),&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left(Date,2) ) as Day,&lt;/P&gt;&lt;P&gt;If(Index(Date, '/', 1) =2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mid(Date,3,2),&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mid(Date,4,1) ) as Month,&lt;/P&gt;&lt;P&gt;Right(Date,4) as Year, &lt;/P&gt;&lt;P&gt;Date, &lt;/P&gt;&lt;P&gt;Ex_Rate&lt;/P&gt;&lt;P&gt;Resident tmp;&lt;/P&gt;&lt;P&gt;Drop Table tmp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 05:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-mixed-text-dates-to-Date/m-p/1429564#M430136</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2017-09-18T05:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convert mixed  text dates to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-mixed-text-dates-to-Date/m-p/1429565#M430137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can you be sure if 12/9 is 12th Sep or 9th Dec?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 05:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-mixed-text-dates-to-Date/m-p/1429565#M430137</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-09-18T05:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Convert mixed  text dates to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-mixed-text-dates-to-Date/m-p/1429566#M430138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Script&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;DateFormat&lt;/EM&gt;&lt;/STRONG&gt;='M/D//YYYY'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 05:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-mixed-text-dates-to-Date/m-p/1429566#M430138</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-09-18T05:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Convert mixed  text dates to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-mixed-text-dates-to-Date/m-p/1429567#M430139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I look at RowNo 1, the 18th has to be a Date. There after I have to trust the constant format. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 05:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-mixed-text-dates-to-Date/m-p/1429567#M430139</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2017-09-18T05:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Convert mixed  text dates to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-mixed-text-dates-to-Date/m-p/1429568#M430140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also you can try converting multiple date formats into single format using Alt function and date#.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 05:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-mixed-text-dates-to-Date/m-p/1429568#M430140</guid>
      <dc:creator>vishalmanu</dc:creator>
      <dc:date>2017-09-18T05:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert mixed  text dates to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-mixed-text-dates-to-Date/m-p/1429569#M430141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That means you are getting the format from first row. If so, what if your first row was like: 10/12/2017 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 05:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-mixed-text-dates-to-Date/m-p/1429569#M430141</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-09-18T05:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Convert mixed  text dates to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-mixed-text-dates-to-Date/m-p/1429570#M430142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Antonia: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes the easiest solves the issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 05:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-mixed-text-dates-to-Date/m-p/1429570#M430142</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2017-09-18T05:33:30Z</dc:date>
    </item>
  </channel>
</rss>

