<?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: Filename extract string as date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524902#M1148321</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Swuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its still not quite doing what I had hoped in excel : ( Say cell B1 had the filename)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date formula =DATE(MID(B1,7,4),MID(B1,4,2),LEFT(B1,2)) ( Can you advise how I may do THIS is QV load)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I would use your formula as below and format as &lt;H&gt;:mm:ss&lt;/H&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(LEN(C2)=17,D2+C2,C2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 456px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" width="158"&gt;Worksheet Name&lt;/TD&gt;&lt;TD class="xl26" style="border-left: medium none;" width="90"&gt;Original data&lt;/TD&gt;&lt;TD class="xl26" style="border-left: medium none;" width="94"&gt;Date Formula&lt;/TD&gt;&lt;TD class="xl28" style="border-left: medium none;" width="114"&gt;Conditional Sum&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="17" style="border-top: medium none;"&gt;14-06-2013 work&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;11:55:41&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-left: medium none; border-top: medium none;"&gt;14/06/2013&lt;/TD&gt;&lt;TD align="right" class="xl30" style="border-left: medium none; border-top: medium none;"&gt;994547:55:41&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="17" style="border-top: medium none;"&gt;14-06-2013 work&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;994547:55:33&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-left: medium none; border-top: medium none;"&gt;14/06/2013&lt;/TD&gt;&lt;TD align="right" class="xl30" style="border-left: medium none; border-top: medium none;"&gt;994547:55:33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="18" style="border-top: medium none;"&gt;17-06-2013 work&lt;/TD&gt;&lt;TD align="right" class="xl32" style="border-left: medium none; border-top: medium none;"&gt;8:27:07&lt;/TD&gt;&lt;TD align="right" class="xl33" style="border-left: medium none; border-top: medium none;"&gt;17/06/2013&lt;/TD&gt;&lt;TD align="right" class="xl35" style="border-left: medium none; border-top: medium none;"&gt;994616:27:07&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would really be appreciated &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jul 2013 10:32:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-26T10:32:03Z</dc:date>
    <item>
      <title>Filename extract string as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524898#M1148313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load in a few Excel Files to my QV doc see example of pathway,&lt;/P&gt;&lt;P&gt;S:\Support\Supports\Weekly to Monthly\19-06-2013-Workflow.xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each of these files I have a field 'Name' based on the file name see :&lt;/P&gt;&lt;P&gt;left(filename(),10) as Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need this as DATE format rather than just the text value (as I wish to later on join in with a Time field for another table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone advise me how I may do this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 13:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524898#M1148313</guid>
      <dc:creator />
      <dc:date>2013-07-25T13:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filename extract string as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524899#M1148314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you successfully managed to cut out the string '19-06-2013', then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date#('19-06-2013','DD-MM-YYYY') as Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should interprete your string as date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 13:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524899#M1148314</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-25T13:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filename extract string as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524900#M1148315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a mill for that -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking to join that Date with an already existing time format - so see sample data below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is I have a field Curr_Txn_Date and this SHOULD hold the date and the time in the format below ,(&lt;H&gt;:mm:ss in excel)&lt;/H&gt;&lt;/P&gt;&lt;P&gt;But in some instances there is ONLY the Time in this field -see data for Orange - so in this instance I wanted to extract the Date of the file as the default value for the Date portion - by using the above method and then in the code was hoping to write some sort of identifier like &lt;/P&gt;&lt;P&gt;if(len(Curr_Txn_Date)&amp;lt;8, left(filename(),10)&amp;amp;Curr_Txn_Date,Curr_Txn_Date) &lt;/P&gt;&lt;P&gt;or something like that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think - as you can see the code as Date#() is not giving the format I require &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="549"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl26" height="17" width="70"&gt;Product_Id&lt;/TD&gt;&lt;TD class="xl27" style="border-left: medium none;" width="156"&gt;Curr_Activity_Description&lt;/TD&gt;&lt;TD class="xl27" style="border-left: medium none;" width="94"&gt;Curr_Txn_Date&lt;/TD&gt;&lt;TD class="xl27" style="border-left: medium none;" width="63"&gt;Date&lt;/TD&gt;&lt;TD class="xl28" style="border-left: medium none;" width="166"&gt;code&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl29" height="17" style="border-top: medium none;"&gt;55001&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none; border-top: medium none;"&gt;Apple&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-left: medium none; border-top: medium none;"&gt;994668:49:40&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none; border-top: medium none;"&gt;19-06-2013&lt;/TD&gt;&lt;TD class="xl30" style="border-left: medium none; border-top: medium none;"&gt;19-06-201341444.534490243&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl29" height="17" style="border-top: medium none;"&gt;55001&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none; border-top: medium none;"&gt;Orange&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-left: medium none; border-top: medium none;"&gt;0:37:49&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none; border-top: medium none;"&gt;18-06-2013&lt;/TD&gt;&lt;TD class="xl30" style="border-left: medium none; border-top: medium none;"&gt;18-06-20130.023122685185185&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl29" height="17" style="border-top: medium none;"&gt;55001&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none; border-top: medium none;"&gt;banana&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-left: medium none; border-top: medium none;"&gt;994668:49:24&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none; border-top: medium none;"&gt;19-06-2013&lt;/TD&gt;&lt;TD class="xl30" style="border-left: medium none; border-top: medium none;"&gt;19-06-201341444.534309722&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl29" height="17" style="border-top: medium none;"&gt;55001&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none; border-top: medium none;"&gt;pineapple&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-left: medium none; border-top: medium none;"&gt;0:33:18&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none; border-top: medium none;"&gt;18-06-2013&lt;/TD&gt;&lt;TD class="xl30" style="border-left: medium none; border-top: medium none;"&gt;18-06-20130.023122685185185&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl31" height="18" style="border-top: medium none;"&gt;55001&lt;/TD&gt;&lt;TD class="xl32" style="border-left: medium none; border-top: medium none;"&gt;tomatoe&lt;/TD&gt;&lt;TD align="right" class="xl33" style="border-left: medium none; border-top: medium none;"&gt;994668:49:26&lt;/TD&gt;&lt;TD class="xl32" style="border-left: medium none; border-top: medium none;"&gt;19-06-2013&lt;/TD&gt;&lt;TD class="xl34" style="border-left: medium none; border-top: medium none;"&gt;19-06-201341444.534309722&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 15:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524900#M1148315</guid>
      <dc:creator />
      <dc:date>2013-07-25T15:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filename extract string as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524901#M1148317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timestamp(&lt;/P&gt;&lt;P&gt;if(Curr_Txn_Date &amp;lt; 1, date#( left(filename(),10),'DD-MM-YYYY') + Curr_Txn_Date, Curr_Txn_Date)&lt;/P&gt;&lt;P&gt;,'DD-MM-YYYY hh:mm:ss')&lt;/P&gt;&lt;P&gt;as code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 16:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524901#M1148317</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-25T16:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filename extract string as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524902#M1148321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Swuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its still not quite doing what I had hoped in excel : ( Say cell B1 had the filename)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date formula =DATE(MID(B1,7,4),MID(B1,4,2),LEFT(B1,2)) ( Can you advise how I may do THIS is QV load)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I would use your formula as below and format as &lt;H&gt;:mm:ss&lt;/H&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(LEN(C2)=17,D2+C2,C2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 456px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" width="158"&gt;Worksheet Name&lt;/TD&gt;&lt;TD class="xl26" style="border-left: medium none;" width="90"&gt;Original data&lt;/TD&gt;&lt;TD class="xl26" style="border-left: medium none;" width="94"&gt;Date Formula&lt;/TD&gt;&lt;TD class="xl28" style="border-left: medium none;" width="114"&gt;Conditional Sum&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="17" style="border-top: medium none;"&gt;14-06-2013 work&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;11:55:41&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-left: medium none; border-top: medium none;"&gt;14/06/2013&lt;/TD&gt;&lt;TD align="right" class="xl30" style="border-left: medium none; border-top: medium none;"&gt;994547:55:41&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="17" style="border-top: medium none;"&gt;14-06-2013 work&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;994547:55:33&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-left: medium none; border-top: medium none;"&gt;14/06/2013&lt;/TD&gt;&lt;TD align="right" class="xl30" style="border-left: medium none; border-top: medium none;"&gt;994547:55:33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl31" height="18" style="border-top: medium none;"&gt;17-06-2013 work&lt;/TD&gt;&lt;TD align="right" class="xl32" style="border-left: medium none; border-top: medium none;"&gt;8:27:07&lt;/TD&gt;&lt;TD align="right" class="xl33" style="border-left: medium none; border-top: medium none;"&gt;17/06/2013&lt;/TD&gt;&lt;TD align="right" class="xl35" style="border-left: medium none; border-top: medium none;"&gt;994616:27:07&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would really be appreciated &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 10:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524902#M1148321</guid>
      <dc:creator />
      <dc:date>2013-07-26T10:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filename extract string as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524903#M1148322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;&lt;SPAN style=": ; color: #800080; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;DATE#&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;Day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;mid&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;mid&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;7&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'DD/MM/YYYY'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;I've tried variations of this and I just cant quite get it right for the Date formula&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 10:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524903#M1148322</guid>
      <dc:creator />
      <dc:date>2013-07-26T10:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filename extract string as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524904#M1148323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Day(), Month() and Year() need a valid date as argument to return something meaningful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And your format code must match the string you pass (note the '/' delimiter in your format code).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;Date#( left(filename(),2)&amp;amp;mid(filename(),4,2)&amp;amp;mid(filename(),7,4), 'DDMMYYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while I would still prefer something like posted above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have trouble getting this to work, proceed step by step, i.e. first try to cut out the date string from the filename, stop and have a look at the result, then create an appropriate format code and use date#() to interpret this date string.&lt;/P&gt;&lt;P&gt;Finally, use the interpreted date to create something else, like adding a time part and format as interval in hours:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=interval ( Date#() + TimeField, 'hh:mm:ss')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 10:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524904#M1148323</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-26T10:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filename extract string as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524905#M1148324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OMG Swuel &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was the "/" in my format DD/MM/YYYY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant believe I didnt realise that - thanks again for all you help and time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 11:13:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524905#M1148324</guid>
      <dc:creator />
      <dc:date>2013-07-26T11:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filename extract string as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524906#M1148325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(Curr_Txn_Date &amp;lt; 19, Timestamp(Date#( left(filename(),2)&amp;amp;mid(filename(),4,2)&amp;amp;mid(filename(),7,4), 'DDMMYYYY') + Curr_Txn_Date,'&lt;H&gt;:mm:ss'), Curr_Txn_Date)as Number&lt;/H&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was the solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 12:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524906#M1148325</guid>
      <dc:creator />
      <dc:date>2013-07-26T12:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filename extract string as date</title>
      <link>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524907#M1148326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(Curr_Txn_Date &amp;lt; 19, Timestamp(Date#( left(filename(),2)&amp;amp;mid(filename(),4,2)&amp;amp;mid(filename(),7,4), 'DDMMYYYY') + Curr_Txn_Date,'&lt;H&gt;:mm:ss'), Curr_Txn_Date)as Number&lt;/H&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was the solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 13:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filename-extract-string-as-date/m-p/524907#M1148326</guid>
      <dc:creator />
      <dc:date>2013-07-26T13:12:35Z</dc:date>
    </item>
  </channel>
</rss>

