<?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 and time check in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Date-and-time-check/m-p/48153#M3742</link>
    <description>Thank a lot.&lt;BR /&gt;Will give it a go and advise.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Willem Nel&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 24 Jan 2020 09:26:00 GMT</pubDate>
    <dc:creator>WillemNel</dc:creator>
    <dc:date>2020-01-24T09:26:00Z</dc:date>
    <item>
      <title>Date and time check</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Date-and-time-check/m-p/48150#M3739</link>
      <description>Good Day&lt;BR /&gt;&lt;BR /&gt;Just wondering if their is anyone that will be able to assist.Still a bit new to developing.&lt;BR /&gt;I need to do a date and time check in a process.&lt;BR /&gt;I need to check if the date and time if older that 48 hours excluding weekends and public holidays and if so the process should go on and if the not it should have an business exception.&lt;BR /&gt;So I have the collection that has the date and time on it as a data item and will use the date of the specific date the process will run as my start date.&lt;BR /&gt;For example:&lt;BR /&gt;21/01/2020 07:55am (Today - Tuesday) now I need to check if the date and time on the collection items date and time is 48Hours ago.&lt;BR /&gt;Date items details as follow one is 20/01/2020 08:00am (Monday) and should be exception and the other one is 17/01/2020 09:00am (Friday) and should also be exception as the weekend must be excluded and the last data item is the 16/01/2020 07:30am and the process should continue as more that 48Hours.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Willem Nel&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Jan 2020 06:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Date-and-time-check/m-p/48150#M3739</guid>
      <dc:creator>WillemNel</dc:creator>
      <dc:date>2020-01-21T06:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: Date and time check</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Date-and-time-check/m-p/48151#M3740</link>
      <description>​Hi Willem!&lt;BR /&gt;&lt;BR /&gt;Try this one in a decision stage:&lt;BR /&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;
&lt;P&gt;&lt;SPAN style="font-size: small;" size="2"&gt;Now&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #800080; font-size: small;" size="2" color="#800080"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: small;" size="2" color="#ff0000"&gt;-&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-size: small;" size="2"&gt;ToDateTime&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #800080; font-size: small;" size="2" color="#800080"&gt;(&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="color: #008000; font-size: small;" size="2" color="#008000"&gt;"22.01.2020 08:00:00"&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #800080; font-size: small;" size="2" color="#800080"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: small;" size="2" color="#ff0000"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-size: small;" size="2"&gt;MakeTimeSpan&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #800080; font-size: small;" size="2" color="#800080"&gt;(&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="color: #0000ff; font-size: small;" size="2" color="#0000ff"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: small;" size="2"&gt;; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small;" size="2" color="#0000ff"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: small;" size="2"&gt;; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small;" size="2" color="#0000ff"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: small;" size="2"&gt;; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small;" size="2" color="#0000ff"&gt;0&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #800080; font-size: small;" size="2" color="#800080"&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
Subtracting DateTimes leaves you with a TimeSpan, it's explained more in depth in the Functions area inside the decision/calculation-stages.&lt;BR /&gt;Just substitute "22.01.2020...." with the dates and times in your collection.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sven Stien Wullum&lt;BR /&gt;RPA-developer&lt;BR /&gt;Fremtind&lt;BR /&gt;Europe/Oslo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Jan 2020 08:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Date-and-time-check/m-p/48151#M3740</guid>
      <dc:creator>Sven_StienWullu</dc:creator>
      <dc:date>2020-01-24T08:45:00Z</dc:date>
    </item>
    <item>
      <title>RE: Date and time check</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Date-and-time-check/m-p/48152#M3741</link>
      <description>​For the weekend check, use an action stage from the Calendars object, "Is weekend" or even "Is workday" if you want to exclude bank holidays and such too.&lt;BR /&gt;Remember you have to have a calendar defined in the System-tab in the main Blue Prism window, just scroll all the way down and you should see it.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sven Stien Wullum&lt;BR /&gt;RPA-developer&lt;BR /&gt;Fremtind&lt;BR /&gt;Europe/Oslo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Jan 2020 09:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Date-and-time-check/m-p/48152#M3741</guid>
      <dc:creator>Sven_StienWullu</dc:creator>
      <dc:date>2020-01-24T09:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Date and time check</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Date-and-time-check/m-p/48153#M3742</link>
      <description>Thank a lot.&lt;BR /&gt;Will give it a go and advise.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Willem Nel&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Jan 2020 09:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Date-and-time-check/m-p/48153#M3742</guid>
      <dc:creator>WillemNel</dc:creator>
      <dc:date>2020-01-24T09:26:00Z</dc:date>
    </item>
  </channel>
</rss>

