<?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: Date formats Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-formats-Question/m-p/1076453#M359100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD EMPLOYEE_ID, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIRST_NAME, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LAST_NAME, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMAIL, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PHONE_NUMBER, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Alt(HIRE_DATE, Date#(HIRE_DATE, 'DD-MMM-YYYY'), Date#(HIRE_DATE, 'DD/MM/YYYY'))) as HIRE_DATE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JOB_ID, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALARY, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMMISSION_PCT, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MANAGER_ID, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEPARTMENT_ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[emp1.txt]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Mar 2016 17:43:04 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-03-02T17:43:04Z</dc:date>
    <item>
      <title>Date formats Question</title>
      <link>https://community.qlik.com/t5/QlikView/Date-formats-Question/m-p/1076450#M359097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question regarding the date formats. I have a txt file where I have records with different date formats, to my strange one of the date formats is validated by Qlikview and it is showing this in the right side of the list box but the other date formats the same list box is showing in the left side. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just curious , according to my knowledge Qlikview shouldn't identify dates from text or Csv files unless we don't use Date#.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct me if I am wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam using Qv11.20 SR9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching the qvw and also the txt file used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 17:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-formats-Question/m-p/1076450#M359097</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-03-02T17:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date formats Question</title>
      <link>https://community.qlik.com/t5/QlikView/Date-formats-Question/m-p/1076451#M359098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlikview will use the format of the first record it can recognize as a date &lt;SPAN style="font-size: 13.3333px;"&gt;(usually the date format that's the same as you defined as your document default) &lt;/SPAN&gt;to process the other records. You can use the alt function to specify alternative formats so you can process dates in different formats. See Tip 8 on page 7 of this document: &lt;A href="https://community.qlik.com/docs/DOC-3102"&gt;QlikView Date fields&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 17:37:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-formats-Question/m-p/1076451#M359098</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-02T17:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date formats Question</title>
      <link>https://community.qlik.com/t5/QlikView/Date-formats-Question/m-p/1076452#M359099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a couple of useful posts on date formatting here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 17:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-formats-Question/m-p/1076452#M359099</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2016-03-02T17:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date formats Question</title>
      <link>https://community.qlik.com/t5/QlikView/Date-formats-Question/m-p/1076453#M359100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD EMPLOYEE_ID, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIRST_NAME, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LAST_NAME, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMAIL, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PHONE_NUMBER, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Alt(HIRE_DATE, Date#(HIRE_DATE, 'DD-MMM-YYYY'), Date#(HIRE_DATE, 'DD/MM/YYYY'))) as HIRE_DATE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JOB_ID, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALARY, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMMISSION_PCT, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MANAGER_ID, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEPARTMENT_ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[emp1.txt]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 17:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-formats-Question/m-p/1076453#M359100</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-02T17:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date formats Question</title>
      <link>https://community.qlik.com/t5/QlikView/Date-formats-Question/m-p/1076454#M359101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your speedy answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So Gysbert you say because my default format is DD - MM - YYYY&amp;nbsp; in edit script , that is why QV identified it as date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Kiran Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 17:55:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-formats-Question/m-p/1076454#M359101</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-03-02T17:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date formats Question</title>
      <link>https://community.qlik.com/t5/QlikView/Date-formats-Question/m-p/1076455#M359102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I understand from Gysbert is it all depends on the variable "&lt;STRONG&gt;SET DateFormat='DD- MM- YY';&lt;/STRONG&gt; "&amp;nbsp; because my default format is DD-MM-YYYY, Qlikview was able to recognize it as date and others as strings, I tried changing the formats to other it was working as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Gysbert once again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 04:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-formats-Question/m-p/1076455#M359102</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-03-03T04:57:43Z</dc:date>
    </item>
  </channel>
</rss>

