<?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: Is there a way to filter a folder by dates Blue Prism in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-filter-a-folder-by-dates-Blue-Prism/m-p/68032#M20637</link>
    <description>Try using # around the dates. This page (despite being about c-sharp) will give you the idea​​ &lt;A href="https://www.csharp-examples.net/dataview-rowfilter/" target="_blank" rel="noopener"&gt;https://www.csharp-examples.net/dataview-rowfilter/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 27 Nov 2020 14:15:00 GMT</pubDate>
    <dc:creator>John__Carter</dc:creator>
    <dc:date>2020-11-27T14:15:00Z</dc:date>
    <item>
      <title>Is there a way to filter a folder by dates Blue Prism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-filter-a-folder-by-dates-Blue-Prism/m-p/68031#M20636</link>
      <description>&lt;P&gt;I am having issues around [Utility - Collection Manipulation - Filter Collection]
I have a Get Files action which gets all the files from a particular folder and outputs them into a collection in Blue Prism (there are 14 .txt files)
I then use the Filter Collection Object to filter this folder "Files"
I am trying to only bring back results in the collection for where the "Created" (DateTime) = today or yesterdays date.&lt;/P&gt;
&lt;P&gt;Date1( DateTime) FormatDateTime(Today()&amp;amp;" "&amp;amp;LocalTime(),"dd/MM/yyyy")
Date2(DateTime) FormatDateTime(DateAdd("9", "-2", Today())&amp;amp;" "&amp;amp;LocalTime(),"dd/MM/yyyy")&lt;/P&gt;
&lt;P&gt;Filter Expression : "[Created] &amp;lt;= "&amp;amp;"'" &amp;amp;[Date1]&amp;amp;"' and [Created] &amp;gt;= "&amp;amp;"'" &amp;amp;[Date2]&amp;amp;"'"&lt;/P&gt;
&lt;P&gt;There is no Error message and it doesn't output any results.
I am thinking that maybe Date1 and Date2 aren't being read as dates perhaps?&lt;/P&gt;
&lt;P&gt;Any help on this matter would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Gary&lt;/P&gt;

--------------------------------------------------&lt;BR /&gt;

&lt;B&gt;Disclaimer:&lt;/B&gt; This content was auto-posted from Stackoverflow. The original Stackoverflow question is here &lt;A href="https://stackoverflow.com/questions/65008706/is-there-a-way-to-filter-a-folder-by-dates-blue-prism"&gt;Stackoverflow Post&lt;/A&gt;, posted by &lt;A href="https://stackoverflow.com/users/14129646/gary"&gt;Gary&lt;/A&gt;.</description>
      <pubDate>Fri, 27 Nov 2020 09:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-filter-a-folder-by-dates-Blue-Prism/m-p/68031#M20636</guid>
      <dc:creator>Digital_WorkerB</dc:creator>
      <dc:date>2020-11-27T09:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: Is there a way to filter a folder by dates Blue Prism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-filter-a-folder-by-dates-Blue-Prism/m-p/68032#M20637</link>
      <description>Try using # around the dates. This page (despite being about c-sharp) will give you the idea​​ &lt;A href="https://www.csharp-examples.net/dataview-rowfilter/" target="_blank" rel="noopener"&gt;https://www.csharp-examples.net/dataview-rowfilter/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Nov 2020 14:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-filter-a-folder-by-dates-Blue-Prism/m-p/68032#M20637</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2020-11-27T14:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: Is there a way to filter a folder by dates Blue Prism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-filter-a-folder-by-dates-Blue-Prism/m-p/68033#M20638</link>
      <description>Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I tried it and when I create Text data items (DateFrom, DateTo) it works when I created them as DateTime it did not work. &lt;BR /&gt;&lt;BR /&gt;"Created&amp;gt;'"&amp;amp;[DateFrom]&amp;amp;"' AND Created&amp;lt;'"&amp;amp;[DateTo]&amp;amp;"'" &lt;BR /&gt;&lt;BR /&gt;The format of the data items must be, of course, MM/dd/yyyy or dd/MM/yyyy depending on your windows settings. &lt;BR /&gt;&lt;BR /&gt;What I don't understand is the following &lt;EM&gt;Date1( DateTime) FormatDateTime(Today()&amp;amp;" "&amp;amp;LocalTime(),"dd/MM/yyyy") Date2(DateTime) FormatDateTime(DateAdd("9", "-2", Today())&amp;amp;" "&amp;amp;LocalTime(),"dd/MM/yyyy"). &lt;/EM&gt;In here you are creating DateTime data item but then you format it to the string to certain format. That is unnecessary.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Zdeněk Kabátek&lt;BR /&gt;Head of Professional Services&lt;BR /&gt;NEOOPS&lt;BR /&gt;&lt;A href="http://www.neoops.com/" target="test_blank"&gt;http://www.neoops.com/&lt;/A&gt;&lt;BR /&gt;Europe/Prague&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Nov 2020 14:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-filter-a-folder-by-dates-Blue-Prism/m-p/68033#M20638</guid>
      <dc:creator>zdenek.kabatek</dc:creator>
      <dc:date>2020-11-27T14:43:00Z</dc:date>
    </item>
    <item>
      <title>RE: Is there a way to filter a folder by dates Blue Prism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-filter-a-folder-by-dates-Blue-Prism/m-p/68034#M20639</link>
      <description>You could sort the collection on the date, read the collection in a loop and check each row for the creation date to see if it needs processing or not. It is after all only 14 rows. That'll save you filtering the collection.&lt;BR /&gt;&lt;BR /&gt;In order to tackle a issues with syntax such as in a Filter action, start simple by using only one date to select on and then work your way up to multiple dates when this works. &lt;BR /&gt;&lt;BR /&gt;To keep thing readable, use a Data item (eg. [Filter], Text) that you build up in a MultiCalc stage and use in your Filter action. First you calculate Date1, then Date2 and then you build the Filter. That way you can easily see if you missed a quote or bracket in your calculations.&lt;BR /&gt;&lt;BR /&gt;This: &lt;SPAN&gt;&lt;STRONG&gt;FormatDateTime(Today()&amp;amp;" "&amp;amp;LocalTime(),"dd/MM/yyyy")&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;Delivers this: &lt;STRONG&gt;30/11/2020&lt;/STRONG&gt;&lt;BR /&gt;Note there's no time!&lt;BR /&gt;&lt;BR /&gt;This: &lt;STRONG&gt;FormatDateTime(Today(),"dd/MM/yyyy") &amp;amp;" "&amp;amp;LocalTime()&lt;/STRONG&gt;&lt;BR /&gt;Delivers this: &lt;STRONG&gt;30/11/2020 11:45&lt;/STRONG&gt;&lt;BR /&gt;Which might be what you're looking for. This: &lt;STRONG&gt;FormatDateTime(Today()&amp;amp;" "&amp;amp;LocalTime(),"dd/MM/yyyy hh:mm")&lt;/STRONG&gt; does the same.&lt;BR /&gt;&lt;BR /&gt;Don't forget to let us know how it went!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Nov 2020 10:50:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-filter-a-folder-by-dates-Blue-Prism/m-p/68034#M20639</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2020-11-30T10:50:00Z</dc:date>
    </item>
  </channel>
</rss>

