<?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: #BPTechTips - Date Intervals in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/BPTechTips-Date-Intervals/m-p/88772#M39265</link>
    <description>&lt;P&gt;I agree Jeremy I just wanted to offer an easier way to do it knowing that Bleuprism warns that DateDiff is deprecated !&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Time to get rid of it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Johan Michiels&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 13:40:00 GMT</pubDate>
    <dc:creator>johan.m</dc:creator>
    <dc:date>2024-02-28T13:40:00Z</dc:date>
    <item>
      <title>#BPTechTips - Date Intervals</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTips-Date-Intervals/m-p/88767#M39260</link>
      <description>If - like me - you're a human, you probably have trouble dealing with those "magic numbers" in the DateDiff() and DateAdd() functions. You know - &lt;STRONG&gt;DateDiff(6, [Start Date Time], Now())&lt;/STRONG&gt; counts the number of elapsed... somethings. But what? Does 6 mean we're counting hours? Or minutes? Or even months?&lt;BR /&gt;&lt;BR /&gt;To make this stuff easier to read - and easier to write as well - I create a one-row collection called Date Intervals, and make it globally visible&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23978.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/24111iD9A5130C9EC4FC57/image-size/large?v=v2&amp;amp;px=999" role="button" title="23978.png" alt="23978.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Initialise all the fields to the secret magic numbers from the Blue Prism help file:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23979.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/24113i404E329785B46C6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="23979.png" alt="23979.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Now I can refer to &lt;STRONG&gt;[Date Intervals.Minute]&lt;/STRONG&gt; instead of "6", and it's easy to understand what the calculation's doing:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23980.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/24112i0945CB15B607A5C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="23980.png" alt="23980.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Just copy the one-row collection to any object or process to enjoy never having to work out those pesky Date Intervals again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Hope you find this helpful.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andrew Pascal&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Sep 2022 15:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTips-Date-Intervals/m-p/88767#M39260</guid>
      <dc:creator>AndrewPascal</dc:creator>
      <dc:date>2022-09-27T15:44:00Z</dc:date>
    </item>
    <item>
      <title>RE: #BPTechTips - Date Intervals</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTips-Date-Intervals/m-p/88768#M39261</link>
      <description>Thanks for sharing &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/53172"&gt;@AndrewPascal&lt;/a&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Manpreet Kaur&lt;BR /&gt;Manager&lt;BR /&gt;Deloitte&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Sep 2022 19:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTips-Date-Intervals/m-p/88768#M39261</guid>
      <dc:creator>ManpreetKaur1</dc:creator>
      <dc:date>2022-09-27T19:49:00Z</dc:date>
    </item>
    <item>
      <title>RE: #BPTechTips - Date Intervals</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTips-Date-Intervals/m-p/88769#M39262</link>
      <description>&lt;P&gt;Love this, great suggestion and well illustrated!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jeremy Dean&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Feb 2024 03:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTips-Date-Intervals/m-p/88769#M39262</guid>
      <dc:creator>JeremyRTDean</dc:creator>
      <dc:date>2024-02-27T03:16:00Z</dc:date>
    </item>
    <item>
      <title>RE: #BPTechTips - Date Intervals</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTips-Date-Intervals/m-p/88770#M39263</link>
      <description>&lt;P&gt;Why don't you use simply :&lt;/P&gt;
&lt;P&gt;ToMinutes([DateTime 2] - [DateTime 1])&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Johan Michiels&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Feb 2024 13:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTips-Date-Intervals/m-p/88770#M39263</guid>
      <dc:creator>johan.m</dc:creator>
      <dc:date>2024-02-27T13:58:00Z</dc:date>
    </item>
    <item>
      <title>RE: #BPTechTips - Date Intervals</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTips-Date-Intervals/m-p/88771#M39264</link>
      <description>&lt;P&gt;I think the point was that many people don't remember the numeric representatives of the time periods (Day is 9, Month is 5 etc.) and they're not very easy to find, especially when you're trying to work out something quickly.&amp;nbsp; The numbers are also an easy way to hide bugs in your code, as I found yesterday when I realised I'd used a 4 rather than a 5 in a DateDiff calculation...&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jeremy Dean&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Feb 2024 19:34:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTips-Date-Intervals/m-p/88771#M39264</guid>
      <dc:creator>JeremyRTDean</dc:creator>
      <dc:date>2024-02-27T19:34:00Z</dc:date>
    </item>
    <item>
      <title>RE: #BPTechTips - Date Intervals</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTips-Date-Intervals/m-p/88772#M39265</link>
      <description>&lt;P&gt;I agree Jeremy I just wanted to offer an easier way to do it knowing that Bleuprism warns that DateDiff is deprecated !&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Time to get rid of it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Johan Michiels&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 13:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTips-Date-Intervals/m-p/88772#M39265</guid>
      <dc:creator>johan.m</dc:creator>
      <dc:date>2024-02-28T13:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: #BPTechTips - Date Intervals</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTips-Date-Intervals/m-p/88773#M39266</link>
      <description>&lt;P&gt;Interesting!&amp;nbsp; I needed to identify transactions where the different between start and end dates was no more than 3 months so I did this:&lt;/P&gt;
&lt;P&gt;(DateDiff([Date Intervals.Month], [RFC Start Date], [RFC End Date]))&amp;lt;=3&lt;/P&gt;
&lt;P&gt;I could have used ToDays and 90 as you suggest.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jeremy Dean&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Feb 2024 18:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTips-Date-Intervals/m-p/88773#M39266</guid>
      <dc:creator>JeremyRTDean</dc:creator>
      <dc:date>2024-02-28T18:38:00Z</dc:date>
    </item>
  </channel>
</rss>

