<?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: Previous Date Logic in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69364#M21969</link>
    <description>&lt;P&gt;I tried , but it did not worked !&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;How can we compare date ?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sandy P&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 01 Nov 2023 05:38:00 GMT</pubDate>
    <dc:creator>sandeshtope</dc:creator>
    <dc:date>2023-11-01T05:38:00Z</dc:date>
    <item>
      <title>Previous Date Logic</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69359#M21964</link>
      <description>&lt;P&gt;I need to write &lt;STRONG&gt;two dates &lt;/STRONG&gt;into a text field in the format &lt;STRONG&gt;dd.MM.yyyy&lt;/STRONG&gt;. The start date should be&lt;SPAN style="background-color: rgb(191, 237, 210);"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: rgb(45, 194, 107);"&gt;&lt;STRONG&gt;&lt;SPAN style="background-color: rgb(191, 237, 210);"&gt;the nearest previous 15th&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;, and the end date should be &lt;SPAN style="background-color: rgb(191, 237, 210);"&gt;today's &lt;/SPAN&gt;date. Any tips on how to do this in Blue Prism? Your advice would be a big help! Thanks!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sandy P&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Oct 2023 13:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69359#M21964</guid>
      <dc:creator>sandeshtope</dc:creator>
      <dc:date>2023-10-31T13:18:00Z</dc:date>
    </item>
    <item>
      <title>RE: Previous Date Logic</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69360#M21965</link>
      <description>&lt;P&gt;Hi Sandy,&lt;/P&gt;
&lt;P&gt;You can try something like below.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Start Date:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17653.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/17805i5DA198D682A27278/image-size/large?v=v2&amp;amp;px=999" role="button" title="17653.png" alt="17653.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Today :&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17654.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/17807i9D57B90357D3415F/image-size/large?v=v2&amp;amp;px=999" role="button" title="17654.png" alt="17654.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Athiban Mahamathi - &lt;A href="https://www.linkedin.com/in/athiban-mahamathi-544a008b/" target="test_blank"&gt;https://www.linkedin.com/in/athiban-mahamathi-544a008b/&lt;/A&gt;&lt;BR /&gt;Technical Consultant,&lt;BR /&gt;SimplifyNext,&lt;BR /&gt;Singapore&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Oct 2023 14:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69360#M21965</guid>
      <dc:creator>Athiban_Mahamathi</dc:creator>
      <dc:date>2023-10-31T14:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: Previous Date Logic</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69361#M21966</link>
      <description>&lt;P&gt;if today's date is, for instance,&lt;STRONG&gt; 31st October,&lt;/STRONG&gt; I want the start date to be the &lt;STRONG&gt;nearest previous 15th&lt;/STRONG&gt;, which means it should be &lt;STRONG&gt;15th October&lt;/STRONG&gt;. How can I handle this situation ?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sandy P&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Oct 2023 14:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69361#M21966</guid>
      <dc:creator>sandeshtope</dc:creator>
      <dc:date>2023-10-31T14:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: Previous Date Logic</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69362#M21967</link>
      <description>&lt;P&gt;Hi Sandy,&lt;/P&gt;
&lt;P&gt;You can use a decision stage to find if the today's date is crossed current month 15th. If yes, then you can get the current month 15th date else you can get the previous month 15th date.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Athiban Mahamathi - &lt;A href="https://www.linkedin.com/in/athiban-mahamathi-544a008b/" target="test_blank"&gt;https://www.linkedin.com/in/athiban-mahamathi-544a008b/&lt;/A&gt;&lt;BR /&gt;Technical Consultant,&lt;BR /&gt;SimplifyNext,&lt;BR /&gt;Singapore&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Oct 2023 15:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69362#M21967</guid>
      <dc:creator>Athiban_Mahamathi</dc:creator>
      <dc:date>2023-10-31T15:16:00Z</dc:date>
    </item>
    <item>
      <title>RE: Previous Date Logic</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69363#M21968</link>
      <description>&lt;P&gt;Hi Atibhan ,&lt;/P&gt;
&lt;P&gt;What to provide in decision stage ?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sandy P&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Oct 2023 15:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69363#M21968</guid>
      <dc:creator>sandeshtope</dc:creator>
      <dc:date>2023-10-31T15:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: Previous Date Logic</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69364#M21969</link>
      <description>&lt;P&gt;I tried , but it did not worked !&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;How can we compare date ?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sandy P&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Nov 2023 05:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69364#M21969</guid>
      <dc:creator>sandeshtope</dc:creator>
      <dc:date>2023-11-01T05:38:00Z</dc:date>
    </item>
    <item>
      <title>RE: Previous Date Logic</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69365#M21970</link>
      <description>&lt;P&gt;Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="cdc84cc2-60ad-4a9a-8d76-0189a6994e4a" data-tag-text="@Sandy P" href="https://community.blueprism.com/network/profile?UserKey=cdc84cc2-60ad-4a9a-8d76-0189a6994e4a" data-itemmentionkey="7269bbf4-b1d1-40ef-ac85-dd5386d57a2d"&gt;@Sandy P&lt;/A&gt; -&amp;nbsp; What if today's date is 01-November - do you still want 15th of October ?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;ToNumber(Left(Today(),2))&amp;gt;15&amp;nbsp; - Where you can decide to check the previous nearest 15th. i.e. this gives you False decision -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If False - Calculation Stage - &lt;span class="lia-inline-image-display-wrapper" image-alt="17678.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/17831i02ECD9A777FFD61D/image-size/large?v=v2&amp;amp;px=999" role="button" title="17678.png" alt="17678.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If True :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17679.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/17832iA77E0FA4884D7494/image-size/large?v=v2&amp;amp;px=999" role="button" title="17679.png" alt="17679.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Mukesh Kumar - Senior Automation Developer&lt;BR /&gt;&lt;BR /&gt;NHS, England, United Kingdom, GB&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 08:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69365#M21970</guid>
      <dc:creator>Mukeshh_k</dc:creator>
      <dc:date>2023-11-01T08:44:00Z</dc:date>
    </item>
    <item>
      <title>RE: Previous Date Logic</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69366#M21971</link>
      <description>&lt;P&gt;Hey&amp;nbsp;Mukesh&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;It worked ! Thanks a lot !!!&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sandy P&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Nov 2023 10:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69366#M21971</guid>
      <dc:creator>sandeshtope</dc:creator>
      <dc:date>2023-11-01T10:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: Previous Date Logic</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69367#M21972</link>
      <description>&lt;P&gt;Great work team &lt;span class="lia-unicode-emoji" title=":clapping_hands:"&gt;👏&lt;/span&gt; Congrats &lt;A class="user-content-mention" data-sign="@" data-contactkey="b2096cea-170e-40c8-b4bf-0186437be518" data-tag-text="@Mukesh Kumar" href="https://community.blueprism.com/network/profile?UserKey=b2096cea-170e-40c8-b4bf-0186437be518" data-itemmentionkey="5caf8977-08bf-4169-9cc9-110bb7c4fddd"&gt;@Mukesh Kumar&lt;/A&gt; on the best answer!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":blue_heart:"&gt;💙&lt;/span&gt; Michael &lt;BR /&gt;(I'm part of the SS&amp;amp;C Blue Prism Community Team)&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Nov 2023 11:04:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69367#M21972</guid>
      <dc:creator>Michael_S</dc:creator>
      <dc:date>2023-11-01T11:04:00Z</dc:date>
    </item>
    <item>
      <title>RE: Previous Date Logic</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69368#M21973</link>
      <description>&lt;P&gt;Sorry, I just have to point out that the answer&amp;nbsp;&lt;A class="user-content-mention" data-sign="@" data-contactkey="b2096cea-170e-40c8-b4bf-0186437be518" data-tag-text="@Mukesh Kumar" href="https://community.blueprism.com/network/profile?UserKey=b2096cea-170e-40c8-b4bf-0186437be518" data-itemmentionkey="7ba2d5d8-a154-4e66-a5f0-46141305b657"&gt;@Mukesh Kumar&lt;/A&gt; gave will be incorrect at least 12 times during the year. For example; the date "11/11/2023" will give you&amp;nbsp; "15/15/2023" with the Replace function, which will cause an error in the ToDate function.&lt;BR /&gt;&lt;BR /&gt;For any regional date formats, you can use the following for days under 16:&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;AddMonths(MakeDate(15, FormatDate(Today(), "MM"), FormatDate(Today(), "yyyy")),-1)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Else&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;MakeDate(15, FormatDate(Today(), "MM"), FormatDate(Today(), "yyyy"))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color: rgb(255, 255, 255); color: rgb(224, 62, 45);"&gt;Addendum:&lt;BR /&gt;For &lt;SPAN style="background-color: rgb(255, 255, 255); color: rgb(224, 62, 45);"&gt;any regional date formats, you can use the following for&amp;nbsp;&lt;/SPAN&gt;the decision:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;ToNumber(FormatDate(Today(), "dd")) &amp;lt; 16&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Micheal Charron&lt;BR /&gt;Senior Manager&lt;BR /&gt;RBC&lt;BR /&gt;America/Toronto&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 13:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69368#M21973</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2023-11-01T13:21:00Z</dc:date>
    </item>
    <item>
      <title>RE: Previous Date Logic</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69369#M21974</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/548"&gt;@MichealCharron&lt;/a&gt; - My bad - This scenario slipped out of my testing mind, thanks for pointing this out and correcting. Cheers !!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Mukesh Kumar - Senior Automation Developer&lt;BR /&gt;&lt;BR /&gt;NHS, England, United Kingdom, GB&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Nov 2023 15:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69369#M21974</guid>
      <dc:creator>Mukeshh_k</dc:creator>
      <dc:date>2023-11-01T15:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: Previous Date Logic</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69370#M21975</link>
      <description>&lt;P&gt;Hi Mike,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That was nice catch, I was about to correct the same.&lt;/P&gt;
&lt;P&gt;But still, I think I'll just share my approach as well, which I think is Simpler and correct in one scenario!&lt;/P&gt;
&lt;P&gt;AddMonths(ToDate(FormatDate(Today(), "MM/15/yyyy")), -1)&lt;/P&gt;
&lt;P&gt;ToDate(FormatDate(Today(), "MM/15/yyyy")&lt;/P&gt;
&lt;P&gt;The one scenario is that Blue Prism works on mm/dd/yyyy format and ToDate("15/10/2023")&amp;nbsp; will fail. (Do let me know what you think)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hope this Helps!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;WeitghtRPAMatey&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Nov 2023 21:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69370#M21975</guid>
      <dc:creator>rsrivastava2</dc:creator>
      <dc:date>2023-11-02T21:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: Previous Date Logic</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69371#M21976</link>
      <description>&lt;P&gt;&lt;A class="user-content-mention" data-sign="@" data-contactkey="a9000017-575f-4eb8-996c-a3069c90e4fa" data-tag-text="@Rohit Srivastava" href="https://community.blueprism.com/network/profile?UserKey=a9000017-575f-4eb8-996c-a3069c90e4fa" data-itemmentionkey="2ff18d93-d29d-4b85-9552-6685afa03d34"&gt;@Rohit Srivastava&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The hard coded value...nice.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an aside; most people don't realize that you can put almost anything in the string for a "Format" parameter in the FormatDate() function. Even formatting characters can be used in the string to represent their literal values as long as they are enclosed in double quotes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For eg., the following string would be unusable to come out with a folder structure from a single FormatDate() function:&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17730.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/17881i1821D6E17FDE5A75/image-size/large?v=v2&amp;amp;px=999" role="button" title="17730.png" alt="17730.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;But using double quotes and escaping back-slashes with another back-slash makes it work:&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17731.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/17884iCE5BE17C81488A56/image-size/large?v=v2&amp;amp;px=999" role="button" title="17731.png" alt="17731.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Micheal Charron&lt;BR /&gt;Senior Manager&lt;BR /&gt;RBC&lt;BR /&gt;America/Toronto&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 14:14:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Previous-Date-Logic/m-p/69371#M21976</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2023-11-03T14:14:00Z</dc:date>
    </item>
  </channel>
</rss>

