<?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 Why Date Diff is deprecated in Blue Prism 7.0.0 in University Forum</title>
    <link>https://community.blueprism.com/t5/University-Forum/Why-Date-Diff-is-deprecated-in-Blue-Prism-7-0-0/m-p/102664#M3477</link>
    <description>Hi, Can anyone help me to understand why Date Diff is deprecated in Blue Prism latest versions (7.0.0v).
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37125.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/37135i3A829B3FCD403060/image-size/large?v=v2&amp;amp;px=999" role="button" title="37125.png" alt="37125.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 26 Jul 2022 04:18:21 GMT</pubDate>
    <dc:creator>MeetaliSharma</dc:creator>
    <dc:date>2022-07-26T04:18:21Z</dc:date>
    <item>
      <title>Why Date Diff is deprecated in Blue Prism 7.0.0</title>
      <link>https://community.blueprism.com/t5/University-Forum/Why-Date-Diff-is-deprecated-in-Blue-Prism-7-0-0/m-p/102664#M3477</link>
      <description>Hi, Can anyone help me to understand why Date Diff is deprecated in Blue Prism latest versions (7.0.0v).
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37125.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/37135i3A829B3FCD403060/image-size/large?v=v2&amp;amp;px=999" role="button" title="37125.png" alt="37125.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Jul 2022 04:18:21 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Why-Date-Diff-is-deprecated-in-Blue-Prism-7-0-0/m-p/102664#M3477</guid>
      <dc:creator>MeetaliSharma</dc:creator>
      <dc:date>2022-07-26T04:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why Date Diff is deprecated in Blue Prism 7.0.0</title>
      <link>https://community.blueprism.com/t5/University-Forum/Why-Date-Diff-is-deprecated-in-Blue-Prism-7-0-0/m-p/102665#M3478</link>
      <description>Hello &lt;A class="user-content-mention" data-sign="@" data-contactkey="a4e4b8c3-4585-46f6-ac6d-0d6908771552" data-tag-text="@Meetali Sharma" href="https://community.blueprism.com/network/profile?UserKey=a4e4b8c3-4585-46f6-ac6d-0d6908771552" data-itemmentionkey="dfe394ac-7823-4815-a032-7b035f793c16"&gt;@Meetali Sharma&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;I believe that message about DatDiff being deprecated was added back in Blue Prism v6. I'm not clear on the specifics of why it was added as the underlying DateDiff function of .NET is still alive and well as both a VBA function and a method on the DateAndTime class. 🤷‍&lt;span class="lia-unicode-emoji" title=":male_sign:"&gt;♂️&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Looking through the &lt;A href="https://bpdocs.blueprism.com/bp-7-1/en-us/helpCalculationsAndDecisions.htm?Highlight=DateDiff" target="_blank" rel="noopener"&gt;online help&lt;/A&gt;, you can see that the recommended approach for determining the difference between two dates is to use the &lt;EM&gt;&lt;STRONG&gt;MakeDate&lt;/STRONG&gt;&lt;/EM&gt; action. Example:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;MakeDate(26,5,1999) – MakeDate(29,5,1968)&amp;nbsp;' Will return a TimeSpan 11319.00:00:00​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric&lt;BR /&gt;&lt;BR /&gt;​</description>
      <pubDate>Tue, 26 Jul 2022 22:32:03 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Why-Date-Diff-is-deprecated-in-Blue-Prism-7-0-0/m-p/102665#M3478</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-07-26T22:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why Date Diff is deprecated in Blue Prism 7.0.0</title>
      <link>https://community.blueprism.com/t5/University-Forum/Why-Date-Diff-is-deprecated-in-Blue-Prism-7-0-0/m-p/102666#M3479</link>
      <description>Yes, the online help does recommend using date subtraction to return a timespan. That's fine for elapsed seconds, minutes, hours, days or weeks. Unfortunately, it's no good for months, years or calendar weeks - all of which DateDiff() supports. We could certainly use some clarity on whether DateDiff() is going to be removed. If no, why is it deprecated and giving warnings for nothing? If yes, then how are we going to calculate elapsed months in future? Would appreciate some confirmation from the BP Product team.&lt;BR /&gt;Thanks,&lt;BR /&gt;Andrew Pascal</description>
      <pubDate>Tue, 27 Sep 2022 14:18:18 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Why-Date-Diff-is-deprecated-in-Blue-Prism-7-0-0/m-p/102666#M3479</guid>
      <dc:creator>AndrewPascal</dc:creator>
      <dc:date>2022-09-27T14:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why Date Diff is deprecated in Blue Prism 7.0.0</title>
      <link>https://community.blueprism.com/t5/University-Forum/Why-Date-Diff-is-deprecated-in-Blue-Prism-7-0-0/m-p/102667#M3480</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/53172"&gt;@AndrewPascal&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I wouldn't really worry about it. While the pop-up is annoying, it's nothing more than that. There's nothing stopping you from using DateDiff. FWIW, I don't think it will ever be removed as doing so could cause loads of breakage in existing automations in the field.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric</description>
      <pubDate>Tue, 27 Sep 2022 14:39:20 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/Why-Date-Diff-is-deprecated-in-Blue-Prism-7-0-0/m-p/102667#M3480</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-09-27T14:39:20Z</dc:date>
    </item>
  </channel>
</rss>

