<?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 Check if Today() is a working day in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Check-if-Today-is-a-working-day/m-p/100063#M47470</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I need some help to create a VBO which verify if Today() is a working day without using the Calendars VBO of Blueprism.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Feb 2021 14:54:35 GMT</pubDate>
    <dc:creator>MartaGelea</dc:creator>
    <dc:date>2021-02-19T14:54:35Z</dc:date>
    <item>
      <title>Check if Today() is a working day</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Check-if-Today-is-a-working-day/m-p/100063#M47470</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I need some help to create a VBO which verify if Today() is a working day without using the Calendars VBO of Blueprism.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 14:54:35 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Check-if-Today-is-a-working-day/m-p/100063#M47470</guid>
      <dc:creator>MartaGelea</dc:creator>
      <dc:date>2021-02-19T14:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Check if Today() is a working day</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Check-if-Today-is-a-working-day/m-p/100064#M47471</link>
      <description>Do you mean something like InStr("Monday Tuesday Wednesday Thursday Friday", FormatDate(Today(), "dddd"))&amp;gt;0&lt;BR /&gt;&lt;BR /&gt;Or do you mean 'check if today is a national holiday'? You could look for an API such as &lt;A href="https://www.gov.uk/bank-holidays.json" target="_blank" rel="noopener"&gt;https://www.gov.uk/bank-holidays.json&lt;/A&gt;, and I've seen (complex) spreadsheets for UK holidays but have never used one.</description>
      <pubDate>Fri, 19 Feb 2021 16:30:13 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Check-if-Today-is-a-working-day/m-p/100064#M47471</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2021-02-19T16:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Check if Today() is a working day</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Check-if-Today-is-a-working-day/m-p/100065#M47472</link>
      <description>If you wanted to expand on this idea (and you are comfortable with using code stages) you could use something like Nager.Date to check for holidays and weekends. The description on the Github site (https://github.com/nager/Nager.Date) says it currently supports over 100 countries. There's also a WebAPI avaiable. This package is available via nuget and you can build/test it first using a small VS project. From a BP code stage you can then build a small amount of code that uses the Nager.Date.dll. For example, pass in a date and see if it is a holiday or weekend date. I've given this a quick test and it works fine within a code stage.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;DISCLAIMER: The recommendation for the use of "Nager.net" is done with the intention of offering a helpful resource. Blue Prism cannot endorse, approve or guarantee software, or the related information and services provided by this or other third-party resources. As such, Blue Prism is not responsible for the content or accuracy of any third-party resource or for any loss or damage resulting from the use or failure of products or services provided by a third-party resource. When using a third-party resource, you will be subject to the terms and licenses by that resource, and no longer be protected by Blue Prism privacy policy or security practices. The third-party resource license and use of terms should be reviewed, including privacy policy and security practices, prior to their use.&lt;/EM&gt;</description>
      <pubDate>Wed, 24 Feb 2021 13:37:11 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Check-if-Today-is-a-working-day/m-p/100065#M47472</guid>
      <dc:creator>JohnCowell</dc:creator>
      <dc:date>2021-02-24T13:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Check if Today() is a working day</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Check-if-Today-is-a-working-day/m-p/100066#M47473</link>
      <description>My team, which included &lt;A class="user-content-mention" data-sign="@" data-contactkey="ae9fdab1-2d26-46c7-9f20-a84e446d45c9" data-tag-text="@Dave Morris" href="https://community.blueprism.com/network/profile?UserKey=ae9fdab1-2d26-46c7-9f20-a84e446d45c9" data-itemmentionkey="5ce3d331-4d9e-4b01-9dce-49edb915e735"&gt;@Dave Morris&lt;/A&gt;, created a reusable action to evaluate the given day.&amp;nbsp; &amp;nbsp; This action used a Blue Prism Calendar that was setup for the department​ that defined the Public Holidays that the department recognizes and any 'Other Holidays' such as the day after Thanksgiving.&amp;nbsp; &amp;nbsp;With the calendar updated yearly (kept up-to-date for any 'Other' holidays that need to be defined), the calendar object can be used to determine if the given day is a Holiday (Public or Other defined holiday).&amp;nbsp; &amp;nbsp; If not, the Calendar - Is Working Day action can be called to determine if the day is a working day as defined in the System - Calendar you create (you can define what days of the week are "working days").&amp;nbsp; &amp;nbsp; &amp;nbsp;So, I suggest reviewing the System - Calendar options and reviewing the help for the build in Blue Prism Calendars object.&amp;nbsp; &amp;nbsp; Using these "tools" you should be able to do what you need to do.</description>
      <pubDate>Thu, 25 Feb 2021 16:29:06 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Check-if-Today-is-a-working-day/m-p/100066#M47473</guid>
      <dc:creator>bjwestwo</dc:creator>
      <dc:date>2021-02-25T16:29:06Z</dc:date>
    </item>
  </channel>
</rss>

