<?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: Reading date format from a file name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reading-date-format-from-a-file-name/m-p/876154#M305938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Asma,&lt;/P&gt;&lt;P&gt;You would need to get QV to try and recognise that as a date using the date#(MyDate,'YYYYMM') function, where the MyDate is your date from the file.&lt;/P&gt;&lt;P&gt;If QV is able to recognise that as a valid date it will also have a numeric equivalent such as 42005 which you can test against. the test would fail if the format was wrong or return a null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2015 12:16:45 GMT</pubDate>
    <dc:creator>peter_turner</dc:creator>
    <dc:date>2015-04-08T12:16:45Z</dc:date>
    <item>
      <title>Reading date format from a file name</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-date-format-from-a-file-name/m-p/876151#M305935</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 file with filename as abc_201501.xls.&lt;/P&gt;&lt;P&gt;I have to separate the date part from the filename and check whether it has the format of YYYYMM. I have managed to separate just the date part from the file name using the subfield function. I am now having 201501 stored in a field. How do I now check whether this format matches with the date format YYYYMM.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asma &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 12:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-date-format-from-a-file-name/m-p/876151#M305935</guid>
      <dc:creator />
      <dc:date>2015-04-08T12:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reading date format from a file name</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-date-format-from-a-file-name/m-p/876152#M305936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IsNum(Date#(InputField, 'YYYYMM'))&lt;/P&gt;&lt;P&gt;where InputField is the field containing 201501 for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will return true if it's a valid date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 12:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-date-format-from-a-file-name/m-p/876152#M305936</guid>
      <dc:creator>Ralf-Narfeldt</dc:creator>
      <dc:date>2015-04-08T12:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reading date format from a file name</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-date-format-from-a-file-name/m-p/876153#M305937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expr. If it is valid YYYYMM then it returns -1 else 0&lt;/P&gt;&lt;P&gt;IsNum(Date#('201501','YYYYMM'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 12:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-date-format-from-a-file-name/m-p/876153#M305937</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-08T12:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reading date format from a file name</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-date-format-from-a-file-name/m-p/876154#M305938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Asma,&lt;/P&gt;&lt;P&gt;You would need to get QV to try and recognise that as a date using the date#(MyDate,'YYYYMM') function, where the MyDate is your date from the file.&lt;/P&gt;&lt;P&gt;If QV is able to recognise that as a valid date it will also have a numeric equivalent such as 42005 which you can test against. the test would fail if the format was wrong or return a null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 12:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-date-format-from-a-file-name/m-p/876154#M305938</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2015-04-08T12:16:45Z</dc:date>
    </item>
  </channel>
</rss>

